Do not recommend the deprecated data= kwarg for passing bytes. (#2044)
(`data=` is meant for sending form data.)
This commit is contained in:
parent
321d4aa509
commit
d299e6ff59
@ -109,7 +109,7 @@ When sending a streaming request body with an `AsyncClient` instance, you should
|
||||
async def upload_bytes():
|
||||
... # yield byte content
|
||||
|
||||
await client.post(url, data=upload_bytes())
|
||||
await client.post(url, content=upload_bytes())
|
||||
```
|
||||
|
||||
### Explicit transport instances
|
||||
|
||||
Loading…
Reference in New Issue
Block a user