Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aio-libs/aiohttp
/ functions
Functions
5,569 in github.com/aio-libs/aiohttp
⨍
Functions
5,569
◇
Types & classes
450
↳
Endpoints
67
↓ 8 callers
Function
dns_response
(loop)
tests/test_connector.py:1287
↓ 8 callers
Function
dumps
(obj)
tests/test_client_functional.py:2311
↓ 8 callers
Method
feed_eof
(self)
aiohttp/http_parser.py:1207
↓ 8 callers
Function
gen
()
tests/test_client_request.py:1117
↓ 8 callers
Function
headers_echo_client
Create a client with an app that echoes request headers as JSON.
tests/test_client_functional.py:99
↓ 8 callers
Method
pong
(self, message: bytes = b"")
aiohttp/web_ws.py:459
↓ 8 callers
Method
receive_json
( self: "WebSocketResponse[Literal[True]]", *, loads: JSONDecoder = ..., timeo
aiohttp/web_ws.py:718
↓ 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:1062
↓ 8 callers
Method
resume_reading
(self, resume_parser: bool = True)
aiohttp/base_protocol.py:84
↓ 8 callers
Function
route
(method: str, path: str, handler: _HandlerType, **kwargs: Any)
aiohttp/web_routedef.py:92
↓ 8 callers
Method
send_frame
Send a frame over the websocket with message as its payload.
aiohttp/_websocket/writer.py:73
↓ 8 callers
Method
terminate
(self)
aiohttp/client_reqrep.py:1542
↓ 8 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:1348
↓ 7 callers
Method
_get
Get next reusable connection for the key or None. The connection will be marked as acquired.
aiohttp/connector.py:724
↓ 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:766
↓ 7 callers
Method
add_route
( self, method: str, path: str, handler: Handler | type[AbstractView],
aiohttp/web_urldispatcher.py:1150
↓ 7 callers
Method
connection_lost
(self, exc: BaseException | None)
aiohttp/base_protocol.py:111
↓ 7 callers
Method
drain
No-op for test writer.
tests/test_payload.py:33
↓ 7 callers
Method
feed_eof
(self)
aiohttp/http_parser.py:910
↓ 7 callers
Method
filter_cookies
(self, request_url: URL)
tests/test_client_session.py:773
↓ 7 callers
Method
get_encoding
(self)
aiohttp/client_reqrep.py:731
↓ 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:764
↓ 7 callers
Method
next
(self)
aiohttp/multipart.py:322
↓ 7 callers
Method
on_eof
(self, callback: Callable[[], None])
aiohttp/streams.py:206
↓ 7 callers
Method
set_eof
Indicate that the message is complete.
aiohttp/http_writer.py:233
↓ 7 callers
Function
tcp_nodelay
(transport: asyncio.Transport, value: bool)
aiohttp/tcp_helpers.py:24
↓ 7 callers
Method
update_cookies
(self, cookies: Any, response_url: URL = URL())
tests/test_client_session.py:770
↓ 7 callers
Method
wait_for_close
(self)
aiohttp/client_reqrep.py:698
↓ 7 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
↓ 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
_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:572
↓ 6 callers
Method
_make_handler
( self, *, loop: asyncio.AbstractEventLoop | None = None, access_log_class: ty
aiohttp/web_app.py:409
↓ 6 callers
Method
_set_loop
(self, loop: asyncio.AbstractEventLoop | None)
aiohttp/web_app.py:261
↓ 6 callers
Method
append_payload
Adds a new body part to multipart writer.
aiohttp/multipart.py:1006
↓ 6 callers
Method
can_prepare
(self, request: BaseRequest)
aiohttp/web_ws.py:408
↓ 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:109
↓ 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
decompressobj
(self, *args: Any, **kwargs: Any)
aiohttp/compression_utils.py:127
↓ 6 callers
Method
expired
(self, key: tuple[str, int])
aiohttp/connector.py:884
↓ 6 callers
Function
f
()
tests/test_connector.py:3153
↓ 6 callers
Function
json_response
( data: Any = sentinel, *, text: str | None = None, body: bytes | None = None, status: int
aiohttp/web_response.py:859
↓ 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
Method
pause_reading
(self)
aiohttp/http_parser.py:315
↓ 6 callers
Method
raise_for_status
Should `ClientResponse.raise_for_status()` be called for each response.
aiohttp/client.py:1610
↓ 6 callers
Method
raise_for_status
(self)
aiohttp/client_reqrep.py:645
↓ 6 callers
Method
read
(self, n: int = -1)
aiohttp/streams.py:411
↓ 6 callers
Method
read_nowait
(self, n: int = -1)
aiohttp/streams.py:513
↓ 6 callers
Method
release
(self)
aiohttp/client_reqrep.py:626
↓ 6 callers
Method
release
Like read(), but reads all the data to the void.
aiohttp/multipart.py:479
↓ 6 callers
Method
resolve
(self, request: Request)
aiohttp/web_urldispatcher.py:370
↓ 6 callers
Method
send_headers
Force sending buffered headers if not already sent.
aiohttp/http_writer.py:218
↓ 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:498
↓ 6 callers
Method
start_timeout
(self)
aiohttp/client_proto.py:283
↓ 6 callers
Method
text
Like read(), but assumes that body part contains text data.
aiohttp/multipart.py:486
↓ 6 callers
Method
timeout
Timeout for the session.
aiohttp/client.py:1580
↓ 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:1193
↓ 5 callers
Method
__init__
( self, runner: "BaseRunner", host: str | None = None, port: int | None = None
aiohttp/web_runner.py:87
↓ 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
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:790
↓ 5 callers
Method
_match
(self, path: str)
aiohttp/web_urldispatcher.py:378
↓ 5 callers
Method
_prepare_headers
Add default headers and transform it to CIMultiDict
aiohttp/client.py:1388
↓ 5 callers
Method
_wait
(self, func_name: str)
aiohttp/streams.py:348
↓ 5 callers
Method
_write
(self, chunk: Buffer)
aiohttp/http_writer.py:96
↓ 5 callers
Method
append_form
Helper to append form urlencoded part.
aiohttp/multipart.py:1053
↓ 5 callers
Function
build_close_frame
(code=1000, message=b"", noheader=False)
tests/test_websocket_parser.py:98
↓ 5 callers
Function
calculate_timeout_when
Calculate when to execute a timeout.
aiohttp/helpers.py:617
↓ 5 callers
Method
close
(self)
examples/fake_server.py:42
↓ 5 callers
Method
compress
Compress the data and returned the compressed bytes. Note that flush() must be called after the last call to compress() If the data
aiohttp/compression_utils.py:224
↓ 5 callers
Function
decode_chunked
(chunked: bytes | bytearray)
tests/test_http_writer.py:70
↓ 5 callers
Method
drain
Flush the write buffer.
aiohttp/abc.py:227
↓ 5 callers
Function
f
(num: int)
tests/test_web_app.py:409
↓ 5 callers
Method
force_close
Forcefully close connection.
aiohttp/web_protocol.py:524
↓ 5 callers
Method
form
Like read(), but assumes that body parts contain form urlencoded data.
aiohttp/multipart.py:502
↓ 5 callers
Method
from_url
Create BasicAuth from url.
aiohttp/helpers.py:185
↓ 5 callers
Method
get_charset
Returns charset parameter from Content-Type header or default.
aiohttp/multipart.py:608
↓ 5 callers
Function
get_unused_port_socket
( host: str, family: socket.AddressFamily = socket.AF_INET )
aiohttp/test_utils.py:70
↓ 5 callers
Method
json
Like read(), but assumes that body parts contains JSON data.
aiohttp/multipart.py:494
↓ 5 callers
Function
parse_http_date
Process a date string, return a datetime object
aiohttp/helpers.py:1017
↓ 5 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:85
↓ 5 callers
Method
readexactly
(self, n: int)
aiohttp/streams.py:498
↓ 5 callers
Method
receive
( self: "ClientWebSocketResponse[Literal[True]]", timeout: float | None = None )
aiohttp/client_ws.py:371
↓ 5 callers
Function
request
()
tests/test_proxy_functional.py:463
↓ 5 callers
Method
resolve
Return MATCH_INFO for given request
aiohttp/abc.py:47
↓ 5 callers
Method
resume_writing
(self)
aiohttp/base_protocol.py:56
↓ 5 callers
Method
send_frame
Send a frame over the websocket.
aiohttp/client_ws.py:280
↓ 5 callers
Method
shutdown
(self)
aiohttp/web_runner.py:412
↓ 5 callers
Method
text
Read response payload and decode.
aiohttp/client_reqrep.py:754
↓ 5 callers
Method
update_cookies
Update request cookies header.
aiohttp/client_reqrep.py:1120
↓ 4 callers
Function
H
(x: str)
tests/test_client_middleware_digest_auth.py:350
↓ 4 callers
Method
__init__
( self, line: str | bytes, limit: str | int = "Unknown", actual_size: str = "U
aiohttp/http_exceptions.py:81
↓ 4 callers
Method
__init__
( self, location: StrOrURL, *, headers: LooseHeaders | None = None, re
aiohttp/web_exceptions.py:171
↓ 4 callers
Method
__init__
(self)
tests/test_payload.py:22
↓ 4 callers
Method
_authenticate
Takes the given response and tries digest-auth, if needed. Returns true if the original request must be resent.
aiohttp/client_middleware_digest_auth.py:409
← previous
next →
201–300 of 5,569, ranked by callers