Do not recommend the deprecated data= kwarg for passing bytes. (#2044)

(`data=` is meant for sending form data.)
This commit is contained in:
Vytautas Liuolia 2022-01-23 21:37:27 +01:00 committed by GitHub
parent 321d4aa509
commit d299e6ff59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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