Skip to content

Conversation

maskit
Copy link

@maskit maskit commented Aug 2, 2016

This PR adds request_headers option, which allow users to send arbitrary HTTP headers.
The option can override all HTTP headers generated by other options or urdl core, such as "Host", "Content-Length" or "User-Agent".

Usage:

std::map<std::string, std::string> headers = {
  {"X-Foo", "bar"}
};
is.set_option(urdl::http::request_headers(headers));

This would satisfy Issue #1 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant