Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encode_headers: Encode header values #23

Closed
wojtekmach opened this issue Aug 3, 2021 · 0 comments
Closed

encode_headers: Encode header values #23

wojtekmach opened this issue Aug 3, 2021 · 0 comments

Comments

@wojtekmach
Copy link
Owner

Requires #22

Currently we just encode header names. We should encode header values too.

iex> Req.get!(url, headers: [max_forwards: 10])
iex> Req.get!(url, headers: [if_unmodified_since: ~U[2021-01-01 00:00:00Z]])

For DateTime & NaiveDateTime we should convert it to "internet time". All other data types should go through String.Chars.to_string.

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

No branches or pull requests

1 participant