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
Function
retry_middleware
( request: ClientRequest, handler: ClientHandlerType )
tests/test_client_middleware.py:74
Function
retry_middleware
( req: ClientRequest, handler: ClientHandlerType )
docs/code/client_middleware_cookbook.py:25
Function
retry_mw
( req: aiohttp.ClientRequest, handler_: aiohttp.ClientHandlerType )
tests/test_client_functional.py:6802
Function
root
(request)
examples/web_cookies.py:19
Function
root_handler
(request)
tests/test_client_session.py:1016
Method
route
(self)
aiohttp/web_urldispatcher.py:258
Function
router
(app)
tests/test_urldispatch.py:43
Function
router
()
tests/test_route_def.py:11
Method
router
(self)
aiohttp/web_app.py:405
Method
run_test
(app: web.Application)
tests/test_run_app.py:1063
Function
save
(request)
tests/test_web_exceptions.py:251
Method
scheme
A string representing the scheme of the request. Hostname is resolved in this order: - overridden value by .clone(scheme=new_scheme)
aiohttp/web_request.py:454
Function
second_handler
(request: web.Request)
tests/test_web_websocket_functional.py:53
Method
secure
A bool indicating if the request is handled with SSL.
aiohttp/web_request.py:388
Function
secure_proxy_url
Return the URL of an instance of a running secure proxy. This fixture also spawns that instance and tears it down after the test.
tests/test_proxy_functional.py:44
Function
selector_loop
()
tests/conftest.py:283
Method
send_dns_cache_hit
(self, *args, **kwargs)
tests/test_connector.py:4280
Method
send_dns_cache_miss
(self, *args: object, **kwargs: object)
tests/test_connector.py:4346
Method
send_dns_resolvehost_end
Dummy send_dns_resolvehost_end
tests/test_connector.py:4341
Method
send_dns_resolvehost_start
Dummy send_dns_resolvehost_start
tests/test_connector.py:4336
Method
send_json
( self, data: Any, compress: int | None = None, *, dumps: JSONEncoder
aiohttp/client_ws.py:309
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/client_ws.py:318
Function
sendfile
(transport, fobj, offset, count)
tests/test_web_sendfile_functional.py:63
Function
serve
(reader: asyncio.StreamReader, writer: asyncio.StreamWriter)
tests/test_client_ws_functional.py:50
Function
serve
(request: web.BaseRequest)
tests/test_web_request_handler.py:6
Function
server
()
tests/test_http_parser.py:68
Method
server
(self)
aiohttp/web_runner.py:280
Method
server
(self)
aiohttp/test_utils.py:323
Function
session
()
tests/test_client_response.py:35
Function
session
(create_session, loop)
tests/test_client_session.py:62
Method
session
Return the ClientSession instance. This property provides access to the ClientSession that initiated this request, allowing middlewar
aiohttp/client_reqrep.py:1232
Method
session
An internal aiohttp.ClientSession. Unlike the methods on the TestClient, client session requests do not automatically include the hos
aiohttp/test_utils.py:331
Function
session_middleware
( request: ClientRequest, handler: ClientHandlerType )
tests/test_client_middleware.py:105
Method
setUp
(self)
tests/test_proxy.py:35
Method
setUp
(self)
tests/test_cookiejar.py:511
Function
set_dict
(app: Any, key: str, value: Any)
aiohttp/test_utils.py:663
Method
set_err
()
tests/test_streams.py:712
Method
set_err
()
tests/test_streams.py:1315
Method
set_exception
( self, exc: BaseException, exc_cause: BaseException = _EXC_SENTINEL, )
aiohttp/http_parser.py:1224
Function
set_handler
(request: web.Request)
tests/test_client_functional.py:3020
Method
set_parser
( self, parser: Any, payload: Any, data_received_cb: Callable[[], None] | None
aiohttp/client_proto.py:226
Method
set_read_chunk_size
(self, n: int)
aiohttp/streams.py:635
Function
setstate
(self: Morsel[str], state: dict[str, str])
tests/test_cookie_helpers.py:252
Method
should_close
(self)
aiohttp/client_proto.py:76
Function
show
(request)
tests/test_web_exceptions.py:255
Method
shutdown
(self)
aiohttp/web_runner.py:377
Method
shutdown
Do worker process exit preparations. We need to clean up everything and stop accepting requests. It is especially important for keep-
aiohttp/web_protocol.py:307
Function
side_effect
(*args, **kwargs)
tests/test_client_response.py:257
Function
simple
(request)
examples/web_srv_route_deco.py:29
Function
simple
(request)
examples/web_srv_route_table.py:25
Function
simple
(request)
examples/web_srv.py:25
Function
single_middleware_handler
(req: ClientRequest)
aiohttp/client_middlewares.py:35
Method
sites
(self)
aiohttp/web_runner.py:296
Method
size
Size of the payload in bytes. Returns the number of bytes that will be transmitted when the payload is written. For string payloads,
aiohttp/payload.py:179
Method
size
Size of the payload in bytes. Returns the total size of the payload content from the initial position. This ensures consiste
aiohttp/payload.py:537
Method
size
Size of the payload in bytes. Returns the number of bytes in the BytesIO buffer that will be transmitted. This is calculated once dur
aiohttp/payload.py:854
Method
size
Size of the payload.
aiohttp/multipart.py:1108
Method
skip_auto_headers
Headers for which autogeneration should be skipped
aiohttp/client.py:1653
Method
skip_auto_headers
(self)
aiohttp/client_reqrep.py:1138
Function
slow_executor
Executor that adds delay to simulate slow operations. Useful for testing cancellation and race conditions in compression tests.
tests/conftest.py:445
Method
slow_fn
(*args: Any, **kwargs: Any)
tests/conftest.py:457
Function
slow_handler
(request: web.Request)
tests/test_web_functional.py:1749
Function
sock_connect
(*args, **kwargs)
tests/test_connector.py:964
Method
sockname
Return sockname if available.
aiohttp/web_protocol.py:293
Function
source_handler
(request: Request)
tests/test_client_middleware_digest_auth.py:1281
Function
spy
(self: ResponseHandler)
tests/test_client_ws_functional.py:1937
Function
srv
(request: web.Request)
tests/test_client_functional.py:3725
Function
srv_from
(request)
tests/test_client_functional.py:3819
Function
srv_to
(request)
tests/test_client_functional.py:3824
Method
ssl
(self)
aiohttp/client_reqrep.py:1156
Method
ssl
(self)
aiohttp/client_exceptions.py:200
Method
ssl
(self)
aiohttp/client_exceptions.py:419
Method
ssl_context
Return SSLContext if available.
aiohttp/web_protocol.py:273
Function
ssl_ctx
(tls_certificate)
tests/conftest.py:132
Function
ssl_key
()
tests/test_connector.py:66
Function
ssrf_middleware
( req: ClientRequest, handler: ClientHandlerType )
docs/code/client_middleware_cookbook.py:121
Function
stall
(reader: asyncio.StreamReader, writer: asyncio.StreamWriter)
tests/test_client_functional.py:5888
Method
start
(self)
aiohttp/web_runner.py:73
Function
start_connection
(*args, **kwargs)
tests/test_connector.py:802
Function
start_connection
()
tests/conftest.py:368
Method
start_timeout
Swallow start_timeout.
tests/test_benchmarks_client_request.py:156
Method
started
(self)
aiohttp/test_utils.py:168
Function
static
(prefix: str, path: PathLike, **kwargs: Any)
aiohttp/web_routedef.py:139
Method
status
(self)
aiohttp/web_response.py:134
Method
status
(self)
aiohttp/web_urldispatcher.py:945
Function
stream
(loop, protocol)
tests/test_flowcontrol_streams.py:17
Function
stream
(buf: bytearray)
tests/test_multipart.py:45
Function
stream
()
tests/test_http_parser.py:150
Function
stream2
(buf2: bytearray)
tests/test_multipart.py:61
Function
stream_handler
(request: web.Request)
tests/isolated/check_for_client_response_leak.py:15
Function
streaming_handler
(request: web.Request)
tests/test_client_functional.py:775
Function
sub_handler
(request)
tests/test_web_middleware.py:107
Function
sub_handler
(request: web.Request)
tests/test_web_app.py:657
Function
subapp_handler
(request: web.Request)
tests/test_web_urldispatcher.py:1018
Function
success_ctx
(app: web.Application)
tests/test_web_app.py:490
Function
sync_handler
Doc
tests/test_web_urldispatcher.py:406
Function
target
()
tests/test_loop.py:51
Function
target_handler
(request: Request)
tests/test_client_middleware_digest_auth.py:1266
Method
task
(self)
aiohttp/web_request.py:306
Method
task
(self)
aiohttp/web_response.py:127
← previous
next →
2,201–2,300 of 5,960, ranked by callers