--- /tmp/python-aiohttp-3.7.4-1_sl_ffw1/debian/python-aiohttp-doc_3.7.4-1_all.deb +++ python-aiohttp-doc_3.7.4-1_all.deb ├── file list │ @@ -1,3 +1,3 @@ │ -rw-r--r-- 0 0 0 4 2021-02-26 08:39:16.000000 debian-binary │ -rw-r--r-- 0 0 0 3220 2021-02-26 08:39:16.000000 control.tar.xz │ --rw-r--r-- 0 0 0 279728 2021-02-26 08:39:16.000000 data.tar.xz │ +-rw-r--r-- 0 0 0 279732 2021-02-26 08:39:16.000000 data.tar.xz ├── control.tar.xz │ ├── control.tar │ │ ├── ./md5sums │ │ │ ├── ./md5sums │ │ │ │┄ Files differ ├── data.tar.xz │ ├── data.tar │ │ ├── ./usr/share/doc/python-aiohttp-doc/html/client_advanced.html │ │ │ @@ -108,15 +108,15 @@ │ │ │ assert json_body['cookies']['my_cookie'] == 'my_value' │ │ │ │ │ │ │ │ │ │ │ │
We can view the server’s response ClientResponse.headers
using
│ │ │ -a CIMultiDictProxy
:
CIMultiDictProxy
:
│ │ │ assert resp.headers == {
│ │ │ 'ACCESS-CONTROL-ALLOW-ORIGIN': '*',
│ │ │ 'CONTENT-TYPE': 'application/json',
│ │ │ 'DATE': 'Tue, 15 Jul 2014 16:49:51 GMT',
│ │ │ 'SERVER': 'gunicorn/18.0',
│ │ │ 'CONTENT-LENGTH': '331',
│ │ │ 'CONNECTION': 'keep-alive'}
│ │ ├── ./usr/share/doc/python-aiohttp-doc/html/client_reference.html
│ │ │ @@ -79,15 +79,15 @@
│ │ │
cookies (dict) – Cookies to send with the request (optional)
headers –
HTTP Headers to send with every request (optional).
│ │ │May be either iterable of key-value pairs or
│ │ │ Mapping
│ │ │ (e.g. dict
,
│ │ │ -CIMultiDict
).
CIMultiDict
).
│ │ │ skip_auto_headers –
set of headers for which autogeneration │ │ │ should be skipped.
│ │ │aiohttp autogenerates headers like User-Agent
or
│ │ │ Content-Type
if these headers are not explicitly
│ │ │ passed. Using skip_auto_headers
parameter allows to skip
│ │ │ that generation. Note that Content-Length
autogeneration can’t
│ │ │ @@ -263,15 +263,15 @@
│ │ │
headers
¶HTTP Headers that sent with every request
│ │ │May be either iterable of key-value pairs or
│ │ │ Mapping
│ │ │ (e.g. dict
,
│ │ │ -CIMultiDict
).
CIMultiDict
).
│ │ │ New in version 3.7.
│ │ │SimpleCookie
).
│ │ │ headers
¶A case-insensitive multidict proxy with HTTP headers of
│ │ │ -response, CIMultiDictProxy
.
CIMultiDictProxy
.
│ │ │ raw_headers
¶Unmodified HTTP headers of response as unconverted bytes, a sequence of
│ │ │ (key, value)
pairs.
links
¶Link HTTP header parsed into a MultiDictProxy
.
Link HTTP header parsed into a MultiDictProxy
.
For each link, key is link param rel when it exists, or link url as
│ │ │ -str
otherwise, and value is MultiDictProxy
│ │ │ +str
otherwise, and value is MultiDictProxy
│ │ │ of link params and url at key url as URL
instance.
New in version 3.2.
│ │ │method
¶
│ │ │ Request HTTP method like 'GET'
or 'POST'
, str
.
headers
¶HTTP headers for request, multidict.CIMultiDict
instance.
HTTP headers for request, multidict.CIMultiDict
instance.
real_url
¶Requested url with URL fragment unstripped, yarl.URL
instance.
fields –
A container for the key/value pairs of this form.
│ │ │Possible types are:
│ │ │io.IOBase
, e.g. a file-like object
If it is a tuple
or list
, it must be a valid argument
│ │ │ for add_fields
.
For dict
, multidict.MultiDict
, and multidict.MultiDictProxy
,
│ │ │ +
For dict
, multidict.MultiDict
, and multidict.MultiDictProxy
,
│ │ │ the keys and values must be valid name and value arguments to
│ │ │ add_field
, respectively.
add_fields
(fields)¶Add one or more fields to the form.
│ │ │fields –
An iterable containing:
│ │ │io.IOBase
, e.g. a file-like object
Useful in unit tests, when spinning full web server is overkill or │ │ │ specific conditions and errors are hard to trigger.
│ │ │method (str) – str, that represents HTTP method, like; GET, POST.
path (str) – str, The URL including PATH INFO without the host or scheme
headers (dict, multidict.CIMultiDict, list of pairs) – mapping containing the headers. Can be anything accepted │ │ │ +
headers (dict, multidict.CIMultiDict, list of pairs) – mapping containing the headers. Can be anything accepted │ │ │ by the multidict.CIMultiDict constructor.
match_info (dict) – mapping containing the info to match with url parameters.
version (aiohttp.protocol.HttpVersion) – namedtuple with encoded HTTP version
closing (bool) – flag indicates that connection should be closed after │ │ │ response.
app (aiohttp.web.Application) – the aiohttp.web application attached for fake request
writer (aiohttp.StreamWriter) – object for managing outcoming data
Read-only str
property.
query
¶A multidict with all the variables in the query string.
│ │ │ -Read-only MultiDictProxy
lazy property.
Read-only MultiDictProxy
lazy property.
query_string
¶The query string in the URL, e.g., id=10
Read-only str
property.
headers
¶A case-insensitive multidict proxy with all headers.
│ │ │ -Read-only CIMultiDictProxy
property.
Read-only CIMultiDictProxy
property.
raw_headers
¶HTTP headers of response as unconverted bytes, a sequence of
│ │ │ (key, value)
pairs.
A multidict of all request’s cookies.
│ │ │ -Read-only MultiDictProxy
lazy property.
Read-only MultiDictProxy
lazy property.
content
¶A StreamReader
instance,
│ │ │ input stream for reading request’s BODY.
method (str) – http method
headers – CIMultiDict
or compatible
│ │ │ +
headers – CIMultiDict
or compatible
│ │ │ headers container.
a cloned Request
instance.
headers
¶CIMultiDict
instance
│ │ │ +
CIMultiDict
instance
│ │ │ for outgoing HTTP headers.
An instance of http.cookies.SimpleCookie
for outgoing cookies.
aiohttp.web.
HTTPException
(*, headers=None, reason=None, text=None, content_type=None)¶Low-level HTTP failure.
│ │ │headers (dict or multidict.CIMultiDict) – headers for the response
headers (dict or multidict.CIMultiDict) – headers for the response
reason (str) – reason included in the response
text (str) – response’s body
content_type (str) – response’s content type. This is passed through
│ │ │ to the Response
initializer.