Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
65ddb40bc3 | ||
|
|
17219507bf | ||
|
|
638d8fb359 |
@@ -84,10 +84,11 @@ async def send_request(
|
|||||||
url: Request URL.
|
url: Request URL.
|
||||||
method: HTTP method.
|
method: HTTP method.
|
||||||
params: Query parameters.
|
params: Query parameters.
|
||||||
json_data: JSON body. A dict here is sent as a JSON body.
|
json_data: JSON body. A dict here is sent as JSON with the
|
||||||
data: Alternative body. Note aioweb routes any dict or list to a JSON
|
application/json content-type set by aioweb.
|
||||||
body, so true form-encoding requires a pre-encoded string; a form
|
data: Raw request body, passed through unchanged (e.g. a url-encoded
|
||||||
dict passed here is sent as JSON.
|
form string). The caller owns the matching content-type via headers.
|
||||||
|
A dict is JSON-encoded by aioweb, so use json_data for JSON bodies.
|
||||||
headers: Per-request headers merged over the session defaults.
|
headers: Per-request headers merged over the session defaults.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
|||||||
Reference in new issue
Block a user