Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 20 additions & 19 deletions docs/client_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1788,6 +1788,26 @@ Utilities
.. versionadded:: 3.8


.. class:: ContentDisposition

A data class to represent the Content-Disposition header,
available as :attr:`ClientResponse.content_disposition` attribute.

.. attribute:: type

A :class:`str` instance. Value of Content-Disposition header
itself, e.g. ``attachment``.

.. attribute:: filename

A :class:`str` instance. Content filename extracted from
parameters. May be ``None``.

.. attribute:: parameters

Read-only mapping contains all parameters.


.. class:: RequestInfo()

A data class with request URL and headers from :class:`~aiohttp.ClientRequest`
Expand Down Expand Up @@ -2138,25 +2158,6 @@ All exceptions are available as members of *aiohttp* module.

Derived from :exc:`RedirectClientError` and :exc:`NonHttpUrlClientError`


.. class:: ContentDisposition

Represent Content-Disposition header

.. attribute:: type

A :class:`str` instance. Value of Content-Disposition header
itself, e.g. ``attachment``.

.. attribute:: filename

A :class:`str` instance. Content filename extracted from
parameters. May be ``None``.

.. attribute:: parameters

Read-only mapping contains all parameters.

Response errors
^^^^^^^^^^^^^^^

Expand Down