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
↓ 534 callers
Function
aiohttp_client
Factory to create a TestClient instance. aiohttp_client(app, **kwargs) aiohttp_client(server, **kwargs) aiohttp_client(raw_server, **kwar
aiohttp/pytest_plugin.py:371
↓ 418 callers
Method
get
(self)
tests/test_classbasedview.py:19
↓ 296 callers
Method
add_route
( self, method: str, handler: type[AbstractView] | Handler, *, expect_
aiohttp/web_urldispatcher.py:343
↓ 262 callers
Method
add_get
Shortcut for add_route with method GET. If allow_head is true, another route is added allowing head requests to the same endpoint.
aiohttp/web_urldispatcher.py:1204
↓ 255 callers
Method
feed_data
(self, data: _T, size: int = 0)
aiohttp/streams.py:688
↓ 251 callers
Method
append
(self, obj: Any, headers: Mapping[str, str] | None = None)
aiohttp/multipart.py:991
↓ 215 callers
Method
close
(self)
tests/test_connector.py:4584
↓ 210 callers
Method
read
(self, size=None)
tests/test_multipart.py:84
↓ 193 callers
Function
make_mocked_request
Creates mocked web.Request testing purposes. Useful in unit tests, when spinning full web server is overkill or specific conditions and error
aiohttp/test_utils.py:689
↓ 156 callers
Method
release
(self)
aiohttp/connector.py:205
↓ 145 callers
Method
ws_connect
( self, url: StrOrURL, *, decode_text: Literal[True] = ...,
aiohttp/client.py:1035
↓ 139 callers
Method
post
(self)
tests/test_web_urldispatcher.py:774
↓ 139 callers
Method
text
(self)
aiohttp/web_response.py:755
↓ 137 callers
Method
encode
Encode credentials.
aiohttp/helpers.py:195
↓ 116 callers
Method
patch
( self, url: StrOrURL, **kwargs: Unpack[_RequestOptions], )
aiohttp/client.py:1449
↓ 113 callers
Method
add_post
Shortcut for add_route with method POST.
aiohttp/web_urldispatcher.py:1223
↓ 103 callers
Function
aiohttp_server
Factory to create a TestServer instance, given an app. aiohttp_server(app, **kwargs)
aiohttp/pytest_plugin.py:295
↓ 100 callers
Function
parse_content_disposition
( header: str | None, )
aiohttp/multipart.py:76
↓ 98 callers
Method
receive
( self: "WebSocketResponse[Literal[True]]", timeout: float | None = None )
aiohttp/web_ws.py:593
↓ 93 callers
Function
make_request
(loop)
tests/test_client_request.py:48
↓ 93 callers
Method
make_url
(self, path: StrOrURL)
aiohttp/test_utils.py:341
↓ 79 callers
Function
make_handler
()
tests/test_urldispatch.py:30
↓ 70 callers
Method
close
Close all opened transports. :param abort_ssl: If True, SSL connections will be aborted immediately without
aiohttp/connector.py:1058
↓ 69 callers
Method
get
(self, key: AppKey[_T], default: None = ...)
aiohttp/web_app.py:241
↓ 67 callers
Method
close
Close all opened transports. :param abort_ssl: If True, SSL connections will be aborted immediately without performi
aiohttp/connector.py:482
↓ 66 callers
Method
close
(self)
aiohttp/client_reqrep.py:1530
↓ 65 callers
Method
add
(self, key: tuple[str, int], addrs: list[ResolveResult])
aiohttp/connector.py:855
↓ 64 callers
Method
_make_one
(self, *args, **kwargs)
tests/test_streams.py:75
↓ 62 callers
Method
write
(self, writer)
tests/test_payload.py:67
↓ 60 callers
Method
add_routes
(self, routes: Iterable[AbstractRouteDef])
aiohttp/web_app.py:378
↓ 59 callers
Method
close
Close underlying connector. Release all acquired resources.
aiohttp/client.py:1523
↓ 57 callers
Method
close
Close websocket connection.
aiohttp/web_ws.py:521
↓ 57 callers
Method
prepare
(self, request: BaseRequest)
aiohttp/web_ws.py:266
↓ 56 callers
Method
feed_eof
(self)
aiohttp/streams.py:694
↓ 55 callers
Method
add_static
Add static files view. prefix - url prefix path - folder with files
aiohttp/web_urldispatcher.py:1162
↓ 55 callers
Method
connect
Get from pool or create new connection.
aiohttp/connector.py:623
↓ 55 callers
Function
make_request
( method, path, headers=CIMultiDict(), version=HttpVersion11, on_response_prepare=None,
tests/test_web_response.py:33
↓ 55 callers
Method
resolve
( self, host: str, port: int = 0, family: int = socket.AF_INET )
tests/test_connector.py:4568
↓ 55 callers
Method
send_str
(self, data: str, compress: int | None = None)
aiohttp/web_ws.py:473
↓ 55 callers
Method
write
Writes chunk of data to a stream. write_eof() indicates end of stream. writer can't be used after write_eof() method being c
aiohttp/http_writer.py:156
↓ 54 callers
Method
send
(self, conn: "Connection")
aiohttp/client_reqrep.py:1430
↓ 49 callers
Method
compress
(self)
aiohttp/web_ws.py:435
↓ 49 callers
Method
json
Return BODY as JSON.
aiohttp/web_request.py:718
↓ 49 callers
Method
run_app
( self, sock: socket.socket, timeout: float, task: Callable[[], Coroutine[None
tests/test_run_app.py:1007
↓ 46 callers
Method
close
Dummy
tests/test_client_functional.py:3482
↓ 46 callers
Function
parse_set_cookie_headers
Parse cookie headers using a vendored version of SimpleCookie parsing. This implementation is based on SimpleCookie.__parse_string to ensure
aiohttp/_cookie_helpers.py:266
↓ 44 callers
Function
create_mocked_conn
(conn_closing_result=None, **kwargs)
tests/test_connector.py:105
↓ 43 callers
Method
prepare
(self, request: "BaseRequest")
aiohttp/web_response.py:458
↓ 43 callers
Method
write_eof
(self, chunk: bytes = b"")
aiohttp/http_writer.py:260
↓ 42 callers
Method
update_cookies
Update cookies.
aiohttp/cookiejar.py:374
↓ 42 callers
Method
url_for
(self, *args: str, **kwargs: str)
aiohttp/web_urldispatcher.py:922
↓ 39 callers
Method
done
(self)
tests/test_client_response.py:29
↓ 39 callers
Function
make_request
(app, protocol)
tests/test_web_websocket.py:48
↓ 37 callers
Method
add_subapp
(self, prefix: str, subapp: "Application")
aiohttp/web_app.py:343
↓ 36 callers
Method
exception
(self)
aiohttp/streams.py:674
↓ 35 callers
Method
decode
(self, encoding: str = "utf-8", errors: str = "strict")
tests/test_payload.py:64
↓ 34 callers
Method
get_written_bytes
Return all written bytes as a single bytes object.
tests/test_payload.py:215
↓ 34 callers
Method
set_exception
( self, exc: BaseException, exc_cause: BaseException = _EXC_SENTINEL, )
aiohttp/streams.py:677
↓ 33 callers
Method
enable_compression
( self, encoding: str = "deflate", strategy: int | None = None )
aiohttp/http_writer.py:91
↓ 33 callers
Method
feed_data
Receive a chunk of data to process. Return: PayloadState - The current state of payload processing. Th
aiohttp/http_parser.py:932
↓ 33 callers
Method
filter_cookies
Returns this jar's cookies filtered by their attributes.
aiohttp/cookiejar.py:448
↓ 32 callers
Method
enable_chunking
(self)
aiohttp/http_writer.py:88
↓ 32 callers
Method
send_bytes
(self, data: bytes, compress: int | None = None)
aiohttp/web_ws.py:482
↓ 31 callers
Method
freeze
(self)
aiohttp/web_app.py:315
↓ 31 callers
Method
setup
(self)
aiohttp/web_runner.py:299
↓ 30 callers
Method
cleanup
Causes on_cleanup signal Should be called after shutdown()
aiohttp/web_app.py:471
↓ 30 callers
Method
write_headers
Write headers to the stream.
aiohttp/http_writer.py:207
↓ 29 callers
Method
decode
Return string representation of the value. This is named decode() to allow compatibility with bytes objects.
aiohttp/payload.py:246
↓ 29 callers
Function
parse_cookie_header
Parse a Cookie header according to RFC 6265 Section 5.4. Cookie headers contain only name-value pairs separated by semicolons. There are
aiohttp/_cookie_helpers.py:167
↓ 28 callers
Method
add_field
( self, name: str, value: Any, *, content_type: str | None = None,
aiohttp/formdata.py:47
↓ 28 callers
Method
get
(self)
tests/test_web_urldispatcher.py:771
↓ 28 callers
Method
prepare
(data)
tests/test_multipart.py:191
↓ 28 callers
Method
request
Request instance.
aiohttp/abc.py:107
↓ 27 callers
Method
get
( self, url: StrOrURL, **kwargs: Unpack[_RequestOptions], )
aiohttp/client.py:1419
↓ 27 callers
Function
stopper
(loop)
tests/test_run_app.py:90
↓ 26 callers
Method
get
(self)
examples/web_classview.py:12
↓ 26 callers
Function
proxy_test_server
(aiohttp_raw_server, loop, monkeypatch)
tests/test_proxy_functional.py:269
↓ 25 callers
Method
get_info
Return a dict with additional info useful for introspection
aiohttp/abc.py:73
↓ 23 callers
Method
_feed_data
Return the next frame from the socket.
aiohttp/_websocket/reader_c.py:326
↓ 23 callers
Method
feed_data
(self, data: bytes, size: int = 0)
aiohttp/streams.py:284
↓ 23 callers
Method
is_eof
Return True if 'feed_eof' was called.
aiohttp/streams.py:239
↓ 23 callers
Method
load
Load cookies from a file. Tries to load JSON format first. Falls back to loading legacy pickle format (using a restricted unpickler)
aiohttp/cookiejar.py:215
↓ 23 callers
Method
read
Reads body part data. decode: Decodes data following by encoding method from Content-Encoding header. If it missed
aiohttp/multipart.py:328
↓ 23 callers
Method
routes
(self)
aiohttp/web_urldispatcher.py:1065
↓ 22 callers
Function
get_request
(loop)
tests/test_proxy_functional.py:316
↓ 21 callers
Method
clear
(self, predicate: abc.ClearCookiePredicate | None = None)
tests/test_client_session.py:764
↓ 21 callers
Function
create_session
(loop)
tests/test_client_session.py:48
↓ 21 callers
Method
is_eof
(self)
aiohttp/streams.py:668
↓ 21 callers
Method
read_chunk
Reads body part content chunk of the specified size. size: chunk size
aiohttp/multipart.py:351
↓ 21 callers
Method
send_frame
Send a frame over the websocket.
aiohttp/web_ws.py:465
↓ 20 callers
Method
at_eof
Returns True if the boundary was reached or False otherwise.
aiohttp/multipart.py:522
↓ 20 callers
Method
feed_eof
(self)
aiohttp/streams.py:215
↓ 20 callers
Method
flush
Flush the compressor synchronously. **WARNING: This method is NOT cancellation-safe when called after compress().** The flush() opera
aiohttp/compression_utils.py:252
↓ 20 callers
Method
match
(self, request: Request)
aiohttp/web_urldispatcher.py:825
↓ 20 callers
Method
read
(self)
aiohttp/streams.py:700
↓ 20 callers
Method
update_cookies_from_headers
Update cookies from raw Set-Cookie headers.
aiohttp/abc.py:199
↓ 19 callers
Method
get_extra_info
Extra info from protocol transport
aiohttp/web_request.py:834
↓ 19 callers
Function
patch
(path: str, handler: _HandlerType, **kwargs: Any)
aiohttp/web_routedef.py:125
↓ 19 callers
Method
receive_str
( self: "WebSocketResponse[Literal[True]]", *, timeout: float | None = None )
aiohttp/web_ws.py:683
↓ 19 callers
Method
run
(self)
aiohttp/worker.py:62
next →
1–100 of 5,569, ranked by callers