--- /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' │ │ │ │ │ │ │ │ │ │ │ │
│ │ │

Response Headers and Cookies

│ │ │

We can view the server’s response ClientResponse.headers using │ │ │ -a CIMultiDictProxy:

│ │ │ +a 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.

    │ │ │
    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ @@ -764,30 +764,30 @@ │ │ │ SimpleCookie).

    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ headers
    │ │ │

    A case-insensitive multidict proxy with HTTP headers of │ │ │ -response, CIMultiDictProxy.

    │ │ │ +response, CIMultiDictProxy.

    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ raw_headers
    │ │ │

    Unmodified HTTP headers of response as unconverted bytes, a sequence of │ │ │ (key, value) pairs.

    │ │ │
    │ │ │ │ │ │
    │ │ │ │ │ │ -

    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.

    │ │ │
    │ │ │
    │ │ │ │ │ │
    │ │ │ @@ -982,15 +982,15 @@ │ │ │ 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.

    │ │ │
    │ │ │ @@ -1234,19 +1234,19 @@ │ │ │
    Parameters
    │ │ │

    fields

    A container for the key/value pairs of this form.

    │ │ │

    Possible types are:

    │ │ │ │ │ │

    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.

    │ │ │

    │ │ │
    │ │ │
    │ │ │
    │ │ │
    │ │ │ @@ -1284,15 +1284,15 @@ │ │ │ add_fields(fields)
    │ │ │

    Add one or more fields to the form.

    │ │ │
    │ │ │
    Parameters
    │ │ │

    fields

    An iterable containing:

    │ │ │ │ │ │

    │ │ │
    │ │ │
    │ │ │
    │ │ ├── ./usr/share/doc/python-aiohttp-doc/html/testing.html │ │ │ @@ -394,15 +394,15 @@ │ │ │

    Useful in unit tests, when spinning full web server is overkill or │ │ │ specific conditions and errors are hard to trigger.

    │ │ │
    │ │ │
    Parameters
    │ │ │
      │ │ │
    • 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

    • │ │ ├── ./usr/share/doc/python-aiohttp-doc/html/web_reference.html │ │ │ @@ -215,29 +215,29 @@ │ │ │

      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.

    │ │ │ @@ -275,15 +275,15 @@ │ │ │
  • │ │ │ │ │ │ │ │ │
    │ │ │
    │ │ │ cookies
    │ │ │

    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.

    │ │ │ @@ -421,15 +421,15 @@ │ │ │ are given, an exact copy is returned. If a parameter is not passed, it │ │ │ will reuse the one from the current request object.

    │ │ │
    │ │ │
    Parameters
    │ │ │
      │ │ │
    • method (str) – http method

    • │ │ │
    • rel_url – url to use, str or URL

    • │ │ │ -
    • headersCIMultiDict or compatible │ │ │ +

    • headersCIMultiDict or compatible │ │ │ headers container.

    • │ │ │
    │ │ │
    │ │ │
    Returns
    │ │ │

    a cloned Request instance.

    │ │ │
    │ │ │
    │ │ │ @@ -666,15 +666,15 @@ │ │ │

    chunked

    │ │ │
    │ │ │ │ │ │ │ │ │
    │ │ │
    │ │ │ headers
    │ │ │ -

    CIMultiDict instance │ │ │ +

    CIMultiDict instance │ │ │ for outgoing HTTP headers.

    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ cookies
    │ │ │

    An instance of http.cookies.SimpleCookie for outgoing cookies.

    │ │ │ @@ -1039,15 +1039,15 @@ │ │ │
    │ │ │
    │ │ │ class aiohttp.web.HTTPException(*, headers=None, reason=None, text=None, content_type=None)
    │ │ │

    Low-level HTTP failure.

    │ │ │
    │ │ │
    Parameters
    │ │ │
      │ │ │ -
    • 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.

    • │ │ │
    │ │ │
    │ │ │