.hash |
|
|
__init__.py |
|
6870 |
_cparser.pxd |
|
4998 |
_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 |
_helpers.c |
Generated by Cython 0.29.32 |
223125 |
_helpers.pyi |
|
202 |
_helpers.pyx |
|
1049 |
_http_parser.c |
Generated by Cython 0.29.32 |
1009120 |
_http_parser.pyx |
|
27770 |
_http_writer.c |
Generated by Cython 0.29.32 |
228789 |
_http_writer.pyx |
|
4575 |
_websocket.c |
Generated by Cython 0.29.32 |
145939 |
_websocket.pyx |
|
1561 |
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.
|
5505 |
base_protocol.py |
Return True if the connection is open. |
2741 |
client.py |
HTTP Client for asyncio. |
45037 |
client_exceptions.py |
HTTP related errors. |
9270 |
client_proto.py |
Helper class to adapt between Protocol and StreamReader. |
8170 |
client_reqrep.py |
|
36973 |
client_ws.py |
WebSocket client for asyncio. |
10516 |
connector.py |
|
51367 |
cookiejar.py |
Implements cookie storage adhering to RFC 6265. |
13655 |
formdata.py |
Helper class for form body generation.
Supports multipart/form-data and application/x-www-form-urlencoded.
|
6106 |
hdrs.py |
HTTP Headers constants. |
4724 |
helpers.py |
Various helper functions |
26398 |
http.py |
|
1800 |
http_exceptions.py |
Low-level http related exceptions. |
2677 |
http_parser.py |
|
33092 |
http_websocket.py |
WebSocket protocol versions 13 and 8. |
25299 |
http_writer.py |
Http related parsers and protocol. |
5933 |
locks.py |
Event asyncio lock helper class.
Wraps the Event asyncio lock allowing either to awake the
locked Tasks without any error or raising an exception.
thanks to @vorpalsmith for the simple design.
|
1136 |
log.py |
|
325 |
multipart.py |
|
32313 |
payload.py |
Payload registry.
note: we need zope.interface for more efficient adapter search
|
13632 |
payload_streamer.py |
Payload implemenation 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
|
2112 |
py.typed |
|
7 |
pytest_plugin.py |
Set up pytest fixture.
Allow fixtures to be coroutines. Run coroutine fixtures in an event loop.
|
11772 |
resolver.py |
Threaded resolver.
Uses an Executor for synchronous getaddrinfo() calls.
concurrent.futures.ThreadPoolExecutor is used by default.
|
5092 |
streams.py |
eof stream indication. |
20758 |
tcp_helpers.py |
Helper methods to tune a TCP connection |
961 |
test_utils.py |
Utilities shared by tests. |
21434 |
tracing.py |
First-class used to trace requests launched via ClientSession objects. |
15177 |
typedefs.py |
|
1766 |
web.py |
|
18081 |
web_app.py |
|
17170 |
web_exceptions.py |
Base class for exceptions with status codes in the 400s and 500s. |
10098 |
web_fileresponse.py |
A response object can be used to send files. |
10784 |
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']
|
7557 |
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.
|
4137 |
web_protocol.py |
Payload parsing error. |
22399 |
web_request.py |
|
28187 |
web_response.py |
Enables automatic chunked transfer encoding. |
27471 |
web_routedef.py |
Route definition table |
6152 |
web_runner.py |
|
11157 |
web_server.py |
Low level HTTP server. |
2050 |
web_urldispatcher.py |
Exposes the resource's canonical path.
For example '/foo/bar/{name}'
|
39483 |
web_ws.py |
|
17144 |
worker.py |
Async gunicorn worker for aiohttp.web |
8763 |