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
↓ 20 callers
Function
aiohttp_raw_server
Factory to create a RawTestServer instance, given a web handler. aiohttp_raw_server(handler, **kwargs)
aiohttp/pytest_plugin.py:334
↓ 20 callers
Method
clear
(self, predicate: ClearCookiePredicate | None = None)
aiohttp/cookiejar.py:353
↓ 20 callers
Method
read
(self)
aiohttp/streams.py:711
↓ 19 callers
Method
clone
( self, *, method: str | _SENTINEL = sentinel, rel_url: StrOrURL | _SENTINEL =
aiohttp/web_request.py:973
↓ 19 callers
Method
get_extra_info
Extra info from protocol transport
aiohttp/web_request.py:915
↓ 19 callers
Function
patch
(path: str, handler: _HandlerType, **kwargs: Any)
aiohttp/web_routedef.py:127
↓ 19 callers
Method
run
(self)
aiohttp/worker.py:62
↓ 19 callers
Method
write
(self, data: bytes | bytearray | memoryview)
aiohttp/web_response.py:555
↓ 18 callers
Method
compressobj
(self, *args: Any, **kwargs: Any)
aiohttp/compression_utils.py:139
↓ 18 callers
Function
handler
(request: web.Request)
tests/test_client_middleware.py:36
↓ 18 callers
Method
is_ssl
(self)
aiohttp/client_reqrep.py:1152
↓ 18 callers
Method
readline
(self, *, max_line_length: int | None = None)
tests/test_multipart.py:93
↓ 17 callers
Method
_attempt_started
A new upload attempt is dispatched; returns its generation token. Called before connecting, so a resend failing early settles as abor
aiohttp/client_reqrep.py:359
↓ 17 callers
Method
_resolve_host
Resolve host and return list of addresses.
aiohttp/connector.py:1106
↓ 17 callers
Method
close
(self)
aiohttp/resolver.py:220
↓ 17 callers
Function
make_conn
()
tests/test_connector.py:233
↓ 17 callers
Method
save
Save cookies to a file using JSON format. :param file_path: Path to file where cookies will be serialized, :class:`str` or :class
aiohttp/cookiejar.py:208
↓ 16 callers
Method
debug
(self)
aiohttp/web_app.py:328
↓ 16 callers
Method
read
(self)
aiohttp/_websocket/reader_py.py:132
↓ 16 callers
Method
set_status
( self, status: int, reason: str | None = None, )
aiohttp/web_response.py:149
↓ 16 callers
Method
trace_config_ctx
Return a new trace_config_ctx instance
aiohttp/tracing.py:88
↓ 15 callers
Method
_handle_frame
( fin: bool, opcode: int, payload: bytes | bytearray, compress
tests/test_websocket_parser.py:46
↓ 15 callers
Method
connection_made
(self, transport)
tests/test_client_functional.py:4471
↓ 15 callers
Function
content_disposition_filename
( params: Mapping[str, str], name: str = "filename" )
aiohttp/multipart.py:192
↓ 15 callers
Method
decompress_sync
( self, data: Buffer, max_length: int = ZLIB_MAX_LENGTH_UNLIMITED )
aiohttp/compression_utils.py:382
↓ 15 callers
Function
set_exception
Set future exception. If the future is marked as complete, this function is a no-op. :param exc_cause: An exception that is a direct cause o
aiohttp/helpers.py:847
↓ 15 callers
Method
set_response_params
( self, *, timer: BaseTimerContext | None = None, skip_payload: bool = False,
aiohttp/client_proto.py:245
↓ 15 callers
Method
start
(self)
aiohttp/web_runner.py:133
↓ 14 callers
Method
_release
( self, key: "ConnectionKey", protocol: ResponseHandler, *, should_clo
aiohttp/connector.py:815
↓ 14 callers
Method
decode
Decodes data synchronously. Decodes data according the specified Content-Encoding or Content-Transfer-Encoding headers value.
aiohttp/multipart.py:561
↓ 14 callers
Method
decompress
(self, data: Any, max_length: int = 0)
tests/test_compression_utils.py:42
↓ 14 callers
Method
end_http_chunk_receiving
(self)
aiohttp/streams.py:312
↓ 14 callers
Function
gen
()
tests/test_payload.py:163
↓ 14 callers
Method
parse_frame
( self, data: bytes )
tests/test_websocket_parser.py:40
↓ 14 callers
Method
readany
(self)
aiohttp/streams.py:463
↓ 14 callers
Function
run_url_dispatcher_benchmark
()
tests/test_benchmarks_web_urldispatcher.py:77
↓ 14 callers
Method
set_cookie
Set or update response cookie. Sets new cookie or updates existent with new value. Also updates only those params which are not None.
aiohttp/web_response.py:225
↓ 14 callers
Method
write_bytes
Write the request body to the connection stream. This method handles writing different types of request bodies: 1. Payload o
aiohttp/client_reqrep.py:1538
↓ 13 callers
Method
__init__
(self, domain: str)
aiohttp/web_urldispatcher.py:802
↓ 13 callers
Method
_encode
Build digest authorization header for the current challenge. Args: method: The HTTP method (GET, POST, etc.)
aiohttp/client_middleware_digest_auth.py:224
↓ 13 callers
Function
_mock_request
(method: str, path: str)
tests/test_benchmarks_web_urldispatcher.py:42
↓ 13 callers
Function
_unquote
Unquote a cookie value. Vendored from http.cookies._unquote to ensure compatibility. Note: The original implementation checked for None
aiohttp/_cookie_helpers.py:151
↓ 13 callers
Method
close
(self)
aiohttp/connector.py:199
↓ 13 callers
Method
enable_compression
Enables response compression encoding.
aiohttp/web_response.py:194
↓ 13 callers
Function
gen_ws_headers
( protocols="", compress=0, extension_text="", server_notakeover=False, client_notakeover=
tests/test_websocket_handshake.py:12
↓ 13 callers
Method
head
( self, url: StrOrURL, **kwargs: Unpack[_RequestOptions], )
aiohttp/client.py:1494
↓ 13 callers
Method
request_reply_with_same_url
(self, url)
tests/test_cookiejar.py:494
↓ 12 callers
Method
_create_connection
( self, req: ClientRequest, traces: list["Trace"], timeout: "ClientTimeout" )
tests/test_client_middleware.py:880
↓ 12 callers
Method
_finalize
Mark the request terminal: no further attempts will start. Settles upload_complete unless the final attempt is still writing, in whic
aiohttp/client_reqrep.py:423
↓ 12 callers
Function
_make_morsel
( name: str, value: str = "value", *, domain: str = "example.com", path: str = "/", se
tests/test_cookiejar.py:90
↓ 12 callers
Function
_merge_ssl_params
( ssl: Union["SSLContext", bool, Fingerprint], verify_ssl: bool | None, ssl_context: Optional["SSL
aiohttp/client_reqrep.py:180
↓ 12 callers
Function
_saved_cookie
Build a record in the format CookieJar.save() writes.
tests/test_cookiejar.py:72
↓ 12 callers
Function
_write_saved
(tmp_path: Path, data: object)
tests/test_cookiejar.py:66
↓ 12 callers
Method
add_resource
(self, path: str, *, name: str | None = None)
aiohttp/web_urldispatcher.py:1143
↓ 12 callers
Method
begin_http_chunk_receiving
(self)
aiohttp/streams.py:304
↓ 12 callers
Method
connection_made
(self, transport: asyncio.BaseTransport)
aiohttp/base_protocol.py:122
↓ 12 callers
Method
freeze
(self)
aiohttp/tracing.py:92
↓ 12 callers
Function
handler
(request)
tests/test_web_log.py:291
↓ 12 callers
Function
make_runner
(loop: Any, app: Any)
tests/test_web_runner.py:19
↓ 12 callers
Method
next
Emits the next multipart body part.
aiohttp/multipart.py:768
↓ 12 callers
Method
ping
(self, message: bytes = b"")
aiohttp/web_ws.py:464
↓ 12 callers
Method
resolve
( self, host: str, port: int = 0, family: socket.AddressFamily = socket.AF_INET )
aiohttp/resolver.py:130
↓ 12 callers
Method
send_json
( self, data: Any, compress: int | None = None, *, dumps: JSONEncoder
aiohttp/web_ws.py:499
↓ 12 callers
Method
start_server
(self)
aiohttp/test_utils.py:311
↓ 12 callers
Method
write_eof
(self, data: bytes = b"")
aiohttp/web_response.py:801
↓ 11 callers
Method
call
(self, request, handler: Handler)
tests/test_web_middleware.py:509
↓ 11 callers
Method
close
(self)
aiohttp/client_reqrep.py:800
↓ 11 callers
Method
prepare
(self, request: "BaseRequest")
aiohttp/web_fileresponse.py:256
↓ 11 callers
Method
put
( self, url: StrOrURL, **kwargs: Unpack[_RequestOptions], )
aiohttp/client.py:1506
↓ 11 callers
Method
set_parser
( self, parser: WebSocketReader, data_received_cb: Callable[[], None] | None = None,
aiohttp/web_protocol.py:418
↓ 11 callers
Function
set_result
(fut: "asyncio.Future[_T]", result: _T)
aiohttp/helpers.py:831
↓ 11 callers
Method
stop
(self, request: web.Request)
tests/test_run_app.py:1003
↓ 11 callers
Method
update_body
Update request body and close previous payload if needed. This method safely updates the request body by first closing any existing
aiohttp/client_reqrep.py:1442
↓ 11 callers
Method
update_cookies
(self, cookies: Any, response_url: URL = URL())
tests/test_client_session.py:770
↓ 11 callers
Method
write
Write payload to the writer stream. Args: writer: An AbstractStreamWriter instance that handles the actual writing
aiohttp/payload.py:254
↓ 11 callers
Method
write_with_length
Write async iterable payload with a specific content length constraint. Args: writer: An AbstractStreamWriter instance t
aiohttp/payload.py:1032
↓ 10 callers
Method
__init__
( self, value: Any, headers: ( _CIMultiDict | dict[str, str] | Iterable[tu
aiohttp/payload.py:147
↓ 10 callers
Method
_drop_timeout
(self)
aiohttp/client_proto.py:282
↓ 10 callers
Method
_get_ssl_context
Logic to get the correct SSL context 0. if req.ssl is false, return None 1. if ssl_context is specified in req, use it 2. if
aiohttp/connector.py:1267
↓ 10 callers
Method
_handshake
( self, request: BaseRequest )
aiohttp/web_ws.py:286
↓ 10 callers
Method
add_done_callback
Dummy method.
tests/test_client_request.py:42
↓ 10 callers
Method
append_json
Helper to append JSON part.
aiohttp/multipart.py:1077
↓ 10 callers
Method
at_eof
(self)
tests/test_multipart.py:89
↓ 10 callers
Method
close
Close the payload if it holds any resources. IMPORTANT: This method must not await anything that might not finish immediatel
aiohttp/payload.py:327
↓ 10 callers
Method
data_received
(self, data: bytes)
aiohttp/client_proto.py:316
↓ 10 callers
Method
data_received
(self, data)
tests/test_client_functional.py:4475
↓ 10 callers
Method
enable_compression
Compression not implemented for test writer.
tests/test_payload.py:36
↓ 10 callers
Method
filter_cookies
(self, request_url: URL)
tests/test_client_session.py:773
↓ 10 callers
Method
read
Read response payload.
aiohttp/client_reqrep.py:898
↓ 10 callers
Method
start
(self)
aiohttp/web_runner.py:253
↓ 10 callers
Method
startup
Causes on_startup signal Should be called in the event loop along with the request handler.
aiohttp/web_app.py:460
↓ 9 callers
Method
_attempt_finished
(self, gen: int)
aiohttp/client_reqrep.py:397
↓ 9 callers
Method
_attempt_writing
The attempt's body write has begun; settling now defers to it.
aiohttp/client_reqrep.py:374
↓ 9 callers
Function
_create_example_app
()
tests/test_test_utils.py:37
↓ 9 callers
Method
_request
( self, method: str, str_or_url: StrOrURL, *, params: Query = None,
aiohttp/client.py:558
↓ 9 callers
Method
_resume_reading_if_drained
(self)
aiohttp/web_protocol.py:492
↓ 9 callers
Method
_set_or_restore_start_position
Set or restore the start position of the file-like object.
aiohttp/payload.py:474
↓ 9 callers
Function
cb
(app: web.Application)
tests/test_web_app.py:187
↓ 9 callers
Method
enable_chunked_encoding
Enables automatic chunked transfer encoding.
aiohttp/web_response.py:184
↓ 9 callers
Method
freeze
Freeze router.
aiohttp/abc.py:42
← previous
next →
101–200 of 5,960, ranked by callers