Name Description Size
.hash
__init__.py 8303
_cookie_helpers.py Internal cookie handling helpers. This module contains internal utilities for cookie parsing and manipulation. These are not part of the public API and may change without notice. 12418
_cparser.pxd 4295
_find_header.c The file is autogenerated from aiohttp/hdrs.py Run ./tools/gen.py to update it after the origin changing. 187570
_find_header.h 170
_find_header.pxd 68
_headers.pxi 2007
_http_parser.c Generated by Cython 3.1.1 1300966
_http_parser.pyx 28239
_http_writer.c Generated by Cython 3.1.1 392326
_http_writer.pyx 4561
_websocket
abc.py Post init stage. Not an abstract method for sake of backward compatibility, but if the router wants to be aware of the application it can override this. 7148
base_protocol.py Return True if the connection is open. 3025
client.py HTTP Client for asyncio. 57143
client_exceptions.py HTTP related errors. 11367
client_middleware_digest_auth.py Digest authentication middleware for aiohttp client. This middleware implements HTTP Digest Authentication according to RFC 7616, providing a more secure alternative to Basic Authentication. It supports all standard hash algorithms including MD5, SHA, SHA-256, SHA-512 and their session variants, as well as both 'auth' and 'auth-int' quality of protection (qop) options. 16938
client_middlewares.py Client middleware support. 1918
client_proto.py Helper class to adapt between Protocol and StreamReader. 12110
client_reqrep.py Create a new RequestInfo instance. For backwards compatibility, the real_url parameter is optional. 53524
client_ws.py WebSocket client for asyncio. 15109
compression_utils.py 8868
connector.py Wait for all waiters to finish closing. 67561
cookiejar.py Implements cookie storage adhering to RFC 6265. 18922
formdata.py Helper class for form body generation. Supports multipart/form-data and application/x-www-form-urlencoded. 6410
hdrs.py HTTP Headers constants. 5111
helpers.py Various helper functions 29614
http.py 1842
http_exceptions.py Low-level http related exceptions. 2960
http_parser.py 36849
http_websocket.py WebSocket protocol versions 13 and 8. 842
http_writer.py Http related parsers and protocol. 12446
log.py 325
multipart.py 39870
payload.py Raised when no payload factory is found for the given data type. 39764
payload_streamer.py Payload implementation for coroutines as data provider. As a simple case, you can upload data from file:: @aiohttp.streamer async def file_sender(writer, file_name=None): with open(file_name, 'rb') as f: chunk = f.read(2**16) while chunk: await writer.write(chunk) chunk = f.read(2**16) Then you can use `file_sender` like this: async with session.post('http://httpbin.org/post', data=file_sender(file_name='huge_file')) as resp: print(await resp.text()) ..note:: Coroutine must accept `writer` as first argument 2211
py.typed 7
pytest_plugin.py Set up pytest fixture. Allow fixtures to be coroutines. Run coroutine fixtures in an event loop. 12901
resolver.py Threaded resolver. Uses an Executor for synchronous getaddrinfo() calls. concurrent.futures.ThreadPoolExecutor is used by default. 10031
streams.py eof stream indication. 22329
tcp_helpers.py Helper methods to tune a TCP connection 961
test_utils.py Utilities shared by tests. 23016
tracing.py First-class used to trace requests launched via ClientSession objects. 15137
typedefs.py 1657
web.py 18390
web_app.py Apply middlewares to handler. 19510
web_exceptions.py Warning when not using AppKey in Application. 10360
web_fileresponse.py The result of the file response. 16474
web_log.py Helper object to log access. Usage: log = logging.getLogger("spam") log_format = "%a %{User-Agent}i" access_logger = AccessLogger(log, log_format) access_logger.log(request, response, time) Format: %% The percent sign %a Remote IP-address (IP-address of proxy if using reverse proxy) %t Time when the request was started to process %P The process ID of the child that serviced the request %r First line of request %s Response status code %b Size of response in bytes, including HTTP headers %T Time taken to serve the request, in seconds %Tf Time taken to serve the request, in seconds with floating fraction in .06f format %D Time taken to serve the request, in microseconds %{FOO}i request.headers['FOO'] %{FOO}o response.headers['FOO'] %{FOO}e os.environ['FOO'] 7865
web_middlewares.py Factory for producing a middleware that normalizes the path of a request. Normalizing means: - Add or remove a trailing slash to the path. - Double slashes are replaced by one. The middleware returns as soon as it finds a path that resolves correctly. The order if both merge and append/remove are enabled is 1) merge slashes 2) append/remove slash 3) both merge slashes and append/remove slash. If the path resolves with at least one of those conditions, it will redirect to the new path. Only one of `append_slash` and `remove_slash` can be enabled. If both are `True` the factory will raise an assertion error If `append_slash` is `True` the middleware will append a slash when needed. If a resource is defined with trailing slash and the request comes without it, it will append it automatically. If `remove_slash` is `True`, `append_slash` must be `False`. When enabled the middleware will remove trailing slashes and redirect if the resource is defined If merge_slashes is True, merge multiple consecutive slashes in the path into one. 4165
web_protocol.py Payload parsing error. 27015
web_request.py 29833
web_response.py Initialize a new stream response object. _real_headers is an internal parameter used to pass a pre-populated headers object. It is used by the `Response` class to avoid copying the headers when creating a new response object. It is not intended to be used by external code. 29342
web_routedef.py Route definition table 6110
web_runner.py 11786
web_server.py Low level HTTP server. 2888
web_urldispatcher.py Exposes the resource's canonical path. For example '/foo/bar/{name}' 44000
web_ws.py 22739
worker.py Async gunicorn worker for aiohttp.web 8152