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

Use maps for request header examples #241

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

florish
Copy link
Contributor

@florish florish commented Sep 4, 2023

As discussed here:

#224 (comment)

As a couple of iex tests learned me that headers: %{"key" => "value"} maps are also accepted and merged correctly (i.e. no need to explicitly wrap "value" in ["value"]), using maps in the examples felt like an improvement, as they are closer to the %Req.Request{} typespec.

lib/req.ex Outdated Show resolved Hide resolved
Co-authored-by: Floris Huetink <[email protected]>
@wojtekmach wojtekmach merged commit 01ff077 into wojtekmach:main Oct 5, 2023
@wojtekmach
Copy link
Owner

Thank you, sorry for the delay!

@florish florish deleted the florish-patch-1 branch October 6, 2023 06:59
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.

2 participants