Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

(`data=` is meant for sending form data.)

authored by Vytautas Liuolia · committed by GitHub · parent 321d4aa · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/async.md+1 added-1 removed
107 unmodified lines
108```python109async def upload_bytes():110 ... # yield byte content111112await client.post(url, data=upload_bytes())112await client.post(url, content=upload_bytes())113```114115### Explicit transport instances116
146 unmodified lines