Skip to content

Seperate content=... and data=... parameters - #1266

Merged
lovelydinosaur merged 4 commits into
masterfrom
request-content
Sep 15, 2020
Merged

Seperate content=... and data=... parameters#1266
lovelydinosaur merged 4 commits into
masterfrom
request-content

Conversation

@lovelydinosaur

@lovelydinosaurlovelydinosaur commented Sep 7, 2020

Copy link
Copy Markdown
Contributor

Closes #1210

Adds support for eg. httpx.post(..., content=<bytes|byte iterator|byte aiterator>) for uploading raw content.
This is distinct from httpx.post(..., data=<dict>) for sending form data.

See also #1265.

@lovelydinosaurlovelydinosaur added the user-experience Ensuring that users have a good experience using the library label Sep 7, 2020
@lovelydinosaurlovelydinosaur added this to the v1.0 milestone Sep 10, 2020
@lovelydinosaur

Copy link
Copy Markdown
ContributorAuthor

Particularly now that we have Response(content=...) I'd like us to press on with this one.

@lovelydinosaur
lovelydinosaur merged commit feb404f into masterSep 15, 2020
@lovelydinosaur
lovelydinosaur deleted the request-content branch September 15, 2020 12:36
@lovelydinosaurlovelydinosaur mentioned this pull request Sep 21, 2020
4 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

user-experienceEnsuring that users have a good experience using the library

Development

Successfully merging this pull request may close these issues.

Separate httpx.post(content=...) from httpx(data=...)?

1 participant

@lovelydinosaur