Aioweb migration #3

Merged
TPV merged 2 commits from aioweb-migration into main 2026-07-19 16:29:00 +00:00
Showing only changes of commit 17219507bf - Show all commits
+5 -4
View File
@@ -84,10 +84,11 @@ async def send_request(
url: Request URL.
method: HTTP method.
params: Query parameters.
json_data: JSON body. A dict here is sent as a JSON body.
data: Alternative body. Note aioweb routes any dict or list to a JSON
body, so true form-encoding requires a pre-encoded string; a form
dict passed here is sent as JSON.
json_data: JSON body. A dict here is sent as JSON with the
application/json content-type set by aioweb.
data: Raw request body, passed through unchanged (e.g. a url-encoded
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.
Returns: