Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aio-libs/aiohttp
/ functions
Functions
5,960 in github.com/aio-libs/aiohttp
⨍
Functions
5,960
◇
Types & classes
464
↳
Endpoints
71
↓ 9 callers
Method
get
(self, key: AppKey[_T], default: _S)
aiohttp/helpers.py:958
↓ 9 callers
Method
log
(self, request: BaseRequest, response: StreamResponse, time: float)
aiohttp/web_log.py:212
↓ 9 callers
Method
next_addrs
(self, key: tuple[str, int])
aiohttp/connector.py:886
↓ 9 callers
Method
pause_writing
(self)
aiohttp/base_protocol.py:54
↓ 9 callers
Method
readchunk
Returns a tuple of (data, end_of_http_chunk). When chunked transfer encoding is used, end_of_http_chunk is a boolean indicating if th
aiohttp/streams.py:475
↓ 9 callers
Method
receive_bytes
(self, *, timeout: float | None = None)
aiohttp/web_ws.py:724
↓ 9 callers
Method
remove
(self, key: tuple[str, int])
aiohttp/connector.py:878
↓ 9 callers
Method
route
(self, method: str, path: str, **kwargs: Any)
aiohttp/web_routedef.py:173
↓ 9 callers
Method
send_frame
Send a frame over the websocket with message as its payload.
aiohttp/_websocket/writer.py:74
↓ 9 callers
Method
set_content_disposition
Sets ``Content-Disposition`` header.
aiohttp/payload.py:233
↓ 9 callers
Method
write_eof
(self, data: bytes = b"")
aiohttp/web_response.py:577
↓ 9 callers
Method
write_with_length
Write payload with a specific content length constraint. Args: writer: An AbstractStreamWriter instance that handles the
aiohttp/payload.py:275
↓ 9 callers
Method
write_with_length
Write BytesIO payload with a specific content length constraint. Args: writer: An AbstractStreamWriter instance that han
aiohttp/payload.py:869
↓ 8 callers
Method
_add_bytes
(self, gen: int, size: int, wire_position: int)
aiohttp/client_reqrep.py:382
↓ 8 callers
Function
_compressed_burst
`count` complete, independently deflated BINARY messages in one read.
tests/test_websocket_parser.py:1179
↓ 8 callers
Method
_drain_helper
(self)
aiohttp/base_protocol.py:147
↓ 8 callers
Method
_get
Get next reusable connection for the key or None. The connection will be marked as acquired.
aiohttp/connector.py:732
↓ 8 callers
Method
_release_acquired
Release acquired connection.
aiohttp/connector.py:802
↓ 8 callers
Method
_request
( self, method: str, path: StrOrURL, **kwargs: Any )
aiohttp/test_utils.py:344
↓ 8 callers
Function
_upgraded_proto
A protocol that has completed the upgrade but has no parser installed.
tests/test_client_proto.py:390
↓ 8 callers
Method
as_bytes
Return bytes representation of the value. This is a convenience method that calls decode() and encodes the result to bytes u
aiohttp/payload.py:298
↓ 8 callers
Function
ceil_timeout
( delay: float | None, ceil_threshold: float = 5 )
aiohttp/helpers.py:770
↓ 8 callers
Function
dns_response
(loop)
tests/test_connector.py:1320
↓ 8 callers
Function
dumps
(obj)
tests/test_client_functional.py:2428
↓ 8 callers
Method
feed_eof
(self)
aiohttp/http_parser.py:959
↓ 8 callers
Method
feed_eof
(self)
aiohttp/http_parser.py:1265
↓ 8 callers
Function
gen
()
tests/test_client_request.py:1132
↓ 8 callers
Function
headers_echo_client
Create a client with an app that echoes request headers as JSON.
tests/test_client_functional.py:101
↓ 8 callers
Method
pong
(self, message: bytes = b"")
aiohttp/web_ws.py:469
↓ 8 callers
Method
receive_json
( self: "WebSocketResponse[Literal[True]]", *, loads: JSONDecoder = ..., timeo
aiohttp/web_ws.py:733
↓ 8 callers
Method
resolve
( self, host: str, port: int = 0, family: socket.AddressFamily = socket.AF_INET )
aiohttp/resolver.py:43
↓ 8 callers
Method
resources
(self)
aiohttp/web_urldispatcher.py:1071
↓ 8 callers
Function
route
(method: str, path: str, handler: _HandlerType, **kwargs: Any)
aiohttp/web_routedef.py:94
↓ 8 callers
Method
timeout
Timeout for the session.
aiohttp/client.py:1643
↓ 7 callers
Method
_release_waiter
Iterates over all waiters until one to be released is found. The one to be released is not finished and belongs to a host th
aiohttp/connector.py:776
↓ 7 callers
Method
add_route
( self, method: str, path: str, handler: Handler | type[AbstractView],
aiohttp/web_urldispatcher.py:1159
↓ 7 callers
Method
connection_lost
(self, exc: BaseException | None)
aiohttp/base_protocol.py:127
↓ 7 callers
Method
get_encoding
(self)
aiohttp/client_reqrep.py:918
↓ 7 callers
Function
handler
(request)
examples/lowlevel_srv.py:6
↓ 7 callers
Method
iter_chunked
Returns an asynchronous iterator that yields chunks of size n.
aiohttp/streams.py:159
↓ 7 callers
Method
json
Read and decodes JSON response.
aiohttp/client_reqrep.py:951
↓ 7 callers
Method
next
(self)
aiohttp/multipart.py:330
↓ 7 callers
Method
on_eof
(self, callback: Callable[[], None])
aiohttp/streams.py:206
↓ 7 callers
Method
read
(self, n: int = -1)
aiohttp/streams.py:422
↓ 7 callers
Method
set_eof
Indicate that the message is complete.
aiohttp/http_writer.py:241
↓ 7 callers
Function
tcp_nodelay
(transport: asyncio.Transport, value: bool)
aiohttp/tcp_helpers.py:24
↓ 7 callers
Method
terminate
(self)
aiohttp/client_reqrep.py:1766
↓ 7 callers
Method
wait_for_close
(self)
aiohttp/client_reqrep.py:885
↓ 7 callers
Method
write_with_length
Write file-like payload with a specific content length constraint. Args: writer: An AbstractStreamWriter instance that h
aiohttp/payload.py:582
↓ 6 callers
Method
_attempt_failed
The attempt did not send the body in full. ``exc`` is the upload error, or ``None`` when the attempt was cut short (cancelled) rather
aiohttp/client_reqrep.py:408
↓ 6 callers
Method
_available_connections
Return number of available connections. The limit, limit_per_host and the connection key are taken into account. If it retu
aiohttp/connector.py:580
↓ 6 callers
Method
_delete_cookies
(self, to_del: list[_CookieKey])
aiohttp/cookiejar.py:438
↓ 6 callers
Method
_do_expiration
Remove expired cookies.
aiohttp/cookiejar.py:395
↓ 6 callers
Method
_make_handler
( self, *, loop: asyncio.AbstractEventLoop | None = None, access_log_class: ty
aiohttp/web_app.py:412
↓ 6 callers
Method
_prepare_headers
Add default headers and transform it to CIMultiDict
aiohttp/client.py:1451
↓ 6 callers
Method
_set_loop
(self, loop: asyncio.AbstractEventLoop | None)
aiohttp/web_app.py:264
↓ 6 callers
Function
_urlencoded_payload
(protocol: BaseProtocol, body: bytes)
tests/test_web_request.py:1096
↓ 6 callers
Method
append_payload
Adds a new body part to multipart writer.
aiohttp/multipart.py:1039
↓ 6 callers
Method
can_prepare
(self, request: BaseRequest)
aiohttp/web_ws.py:418
↓ 6 callers
Function
cli
(loop, aiohttp_client)
tests/test_web_middleware.py:153
↓ 6 callers
Method
connection_lost
(self, exc: BaseException | None)
aiohttp/client_proto.py:111
↓ 6 callers
Function
create_stream
()
tests/test_streams.py:25
↓ 6 callers
Function
decompress
(data: bytes)
tests/test_http_writer.py:65
↓ 6 callers
Method
decompress_sync
( self, data: Buffer, max_length: int = ZLIB_MAX_LENGTH_UNLIMITED )
aiohttp/compression_utils.py:495
↓ 6 callers
Method
expired
(self, key: tuple[str, int])
aiohttp/connector.py:894
↓ 6 callers
Function
f
()
tests/test_connector.py:3208
↓ 6 callers
Function
json_response
( data: Any = sentinel, *, text: str | None = None, body: bytes | None = None, status: int
aiohttp/web_response.py:860
↓ 6 callers
Function
loop_context
A contextmanager that creates an event_loop, for test purposes. Handles the creation and cleanup of a test loop.
aiohttp/test_utils.py:620
↓ 6 callers
Function
parse_mimetype
Parses a MIME type into its components. mimetype is a MIME type string. Returns a MimeType object. Example: >>> parse_mimetype('te
aiohttp/helpers.py:347
↓ 6 callers
Function
preserve_morsel_with_coded_value
Preserve a Morsel's coded_value exactly as received from the server. This function ensures that cookie encoding is preserved exactly as sent
aiohttp/_cookie_helpers.py:96
↓ 6 callers
Method
raise_for_status
Should `ClientResponse.raise_for_status()` be called for each response.
aiohttp/client.py:1673
↓ 6 callers
Method
raise_for_status
(self)
aiohttp/client_reqrep.py:832
↓ 6 callers
Method
read_nowait
(self, n: int = -1)
aiohttp/streams.py:524
↓ 6 callers
Method
release
(self)
aiohttp/client_reqrep.py:813
↓ 6 callers
Method
release
Like read(), but reads all the data to the void.
aiohttp/multipart.py:503
↓ 6 callers
Method
resolve
(self, request: Request)
aiohttp/web_urldispatcher.py:371
↓ 6 callers
Method
resume_reading
(self, resume_parser: bool = True)
aiohttp/base_protocol.py:110
↓ 6 callers
Method
send_headers
Force sending buffered headers if not already sent.
aiohttp/http_writer.py:226
↓ 6 callers
Method
send_json_bytes
Send JSON data using a bytes-returning encoder as a binary frame. Use this when your JSON encoder (like orjson) returns bytes instead
aiohttp/web_ws.py:508
↓ 6 callers
Method
start_timeout
(self)
aiohttp/client_proto.py:299
↓ 6 callers
Method
text
Like read(), but assumes that body part contains text data.
aiohttp/multipart.py:510
↓ 6 callers
Function
unused_port
Return a port that is unused on the current host.
aiohttp/test_utils.py:89
↓ 6 callers
Method
update_body_from_data
Update request body from data.
aiohttp/client_reqrep.py:1383
↓ 5 callers
Method
__init__
( self, runner: "BaseRunner", host: str | None = None, port: int | None = None
aiohttp/web_runner.py:87
↓ 5 callers
Method
__setitem__
(self, key: AppKey[_T], value: _T)
aiohttp/web_app.py:213
↓ 5 callers
Function
_basic_auth_no_warn
Construct a BasicAuth without emitting the deprecation warning. For internal use only. Bypasses BasicAuth.__new__ so that aiohttp's own machi
aiohttp/helpers.py:200
↓ 5 callers
Function
_build_request_parser
( request_cls: type[HttpRequestParser], protocol: BaseProtocol, loop: asyncio.AbstractEventLoop,
tests/test_http_parser.py:165
↓ 5 callers
Function
_fill_domain
(jar: CookieJar, url: URL, *, secure: bool)
tests/test_cookiejar.py:1716
↓ 5 callers
Method
_get_part_reader
Dispatches the response by the `Content-Type` header. Returns a suitable reader instance. :param dict headers: Response headers
aiohttp/multipart.py:818
↓ 5 callers
Method
_match
(self, path: str)
aiohttp/web_urldispatcher.py:379
↓ 5 callers
Method
_pause_reading_for_buffer
Hold the transport for a buffer this protocol cannot drain yet. One flag covers every buffer a protocol owns; the server already mult
aiohttp/base_protocol.py:76
↓ 5 callers
Method
_start_tls_connection
Wrap the raw TCP transport with TLS.
aiohttp/connector.py:1461
↓ 5 callers
Method
_wait
(self, func_name: str)
aiohttp/streams.py:348
↓ 5 callers
Method
_write
(self, chunk: Buffer)
aiohttp/http_writer.py:97
↓ 5 callers
Method
abort
(self)
aiohttp/client_proto.py:99
↓ 5 callers
Method
add_domain
(self, domain: str, subapp: "Application")
aiohttp/web_app.py:371
↓ 5 callers
Method
add_put
Shortcut for add_route with method PUT.
aiohttp/web_urldispatcher.py:1236
↓ 5 callers
Method
append_form
Helper to append form urlencoded part.
aiohttp/multipart.py:1086
↓ 5 callers
Function
build_close_frame
(code=1000, message=b"", noheader=False)
tests/test_websocket_parser.py:109
↓ 5 callers
Function
calculate_timeout_when
Calculate when to execute a timeout.
aiohttp/helpers.py:617
← previous
next →
201–300 of 5,960, ranked by callers