Skip to content

Support for libcurl’s DNS-over-HTTPS (DoH) feature? #1256

@potato520hjj

Description

@potato520hjj

Is your feature request related to a problem?

Hi there 👋

I’m wondering if there are any plans to support DNS-over-HTTPS (DoH) in CPR.
Since libcurl already provides this feature via the CURLOPT_DOH_URL
option (or --doh-url in the CLI), it would be great if CPR could expose it through its own API.

For example:

cpr::Session session;
session.SetOption(cpr::DohUrl{"https://dns.google/dns-query"});

Is this something that’s currently on the roadmap, or would you be open to a pull request implementing it?

Thanks a lot for maintaining CPR — it’s a fantastic wrapper around libcurl and really improves usability 🙌

Possible Solution

I’d be happy to look into contributing this feature if it’s not already planned.

Alternatives

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions