MCPcopy Create free account

hub / github.com/aio-libs/aiohttp / functions

Functions5,569 in github.com/aio-libs/aiohttp

↓ 534 callersFunctionaiohttp_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 callersMethodget
(self)
tests/test_classbasedview.py:19
↓ 296 callersMethodadd_route
( self, method: str, handler: type[AbstractView] | Handler, *, expect_
aiohttp/web_urldispatcher.py:343
↓ 262 callersMethodadd_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 callersMethodfeed_data
(self, data: _T, size: int = 0)
aiohttp/streams.py:688
↓ 251 callersMethodappend
(self, obj: Any, headers: Mapping[str, str] | None = None)
aiohttp/multipart.py:991
↓ 215 callersMethodclose
(self)
tests/test_connector.py:4584
↓ 210 callersMethodread
(self, size=None)
tests/test_multipart.py:84
↓ 193 callersFunctionmake_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 callersMethodrelease
(self)
aiohttp/connector.py:205
↓ 145 callersMethodws_connect
( self, url: StrOrURL, *, decode_text: Literal[True] = ...,
aiohttp/client.py:1035
↓ 139 callersMethodpost
(self)
tests/test_web_urldispatcher.py:774
↓ 139 callersMethodtext
(self)
aiohttp/web_response.py:755
↓ 137 callersMethodencode
Encode credentials.
aiohttp/helpers.py:195
↓ 116 callersMethodpatch
( self, url: StrOrURL, **kwargs: Unpack[_RequestOptions], )
aiohttp/client.py:1449
↓ 113 callersMethodadd_post
Shortcut for add_route with method POST.
aiohttp/web_urldispatcher.py:1223
↓ 103 callersFunctionaiohttp_server
Factory to create a TestServer instance, given an app. aiohttp_server(app, **kwargs)
aiohttp/pytest_plugin.py:295
↓ 100 callersFunctionparse_content_disposition
( header: str | None, )
aiohttp/multipart.py:76
↓ 98 callersMethodreceive
( self: "WebSocketResponse[Literal[True]]", timeout: float | None = None )
aiohttp/web_ws.py:593
↓ 93 callersFunctionmake_request
(loop)
tests/test_client_request.py:48
↓ 93 callersMethodmake_url
(self, path: StrOrURL)
aiohttp/test_utils.py:341
↓ 79 callersFunctionmake_handler
()
tests/test_urldispatch.py:30
↓ 70 callersMethodclose
Close all opened transports. :param abort_ssl: If True, SSL connections will be aborted immediately without
aiohttp/connector.py:1058
↓ 69 callersMethodget
(self, key: AppKey[_T], default: None = ...)
aiohttp/web_app.py:241
↓ 67 callersMethodclose
Close all opened transports. :param abort_ssl: If True, SSL connections will be aborted immediately without performi
aiohttp/connector.py:482
↓ 66 callersMethodclose
(self)
aiohttp/client_reqrep.py:1530
↓ 65 callersMethodadd
(self, key: tuple[str, int], addrs: list[ResolveResult])
aiohttp/connector.py:855
↓ 64 callersMethod_make_one
(self, *args, **kwargs)
tests/test_streams.py:75
↓ 62 callersMethodwrite
(self, writer)
tests/test_payload.py:67
↓ 60 callersMethodadd_routes
(self, routes: Iterable[AbstractRouteDef])
aiohttp/web_app.py:378
↓ 59 callersMethodclose
Close underlying connector. Release all acquired resources.
aiohttp/client.py:1523
↓ 57 callersMethodclose
Close websocket connection.
aiohttp/web_ws.py:521
↓ 57 callersMethodprepare
(self, request: BaseRequest)
aiohttp/web_ws.py:266
↓ 56 callersMethodfeed_eof
(self)
aiohttp/streams.py:694
↓ 55 callersMethodadd_static
Add static files view. prefix - url prefix path - folder with files
aiohttp/web_urldispatcher.py:1162
↓ 55 callersMethodconnect
Get from pool or create new connection.
aiohttp/connector.py:623
↓ 55 callersFunctionmake_request
( method, path, headers=CIMultiDict(), version=HttpVersion11, on_response_prepare=None,
tests/test_web_response.py:33
↓ 55 callersMethodresolve
( self, host: str, port: int = 0, family: int = socket.AF_INET )
tests/test_connector.py:4568
↓ 55 callersMethodsend_str
(self, data: str, compress: int | None = None)
aiohttp/web_ws.py:473
↓ 55 callersMethodwrite
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 callersMethodsend
(self, conn: "Connection")
aiohttp/client_reqrep.py:1430
↓ 49 callersMethodcompress
(self)
aiohttp/web_ws.py:435
↓ 49 callersMethodjson
Return BODY as JSON.
aiohttp/web_request.py:718
↓ 49 callersMethodrun_app
( self, sock: socket.socket, timeout: float, task: Callable[[], Coroutine[None
tests/test_run_app.py:1007
↓ 46 callersMethodclose
Dummy
tests/test_client_functional.py:3482
↓ 46 callersFunctionparse_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 callersFunctioncreate_mocked_conn
(conn_closing_result=None, **kwargs)
tests/test_connector.py:105
↓ 43 callersMethodprepare
(self, request: "BaseRequest")
aiohttp/web_response.py:458
↓ 43 callersMethodwrite_eof
(self, chunk: bytes = b"")
aiohttp/http_writer.py:260
↓ 42 callersMethodupdate_cookies
Update cookies.
aiohttp/cookiejar.py:374
↓ 42 callersMethodurl_for
(self, *args: str, **kwargs: str)
aiohttp/web_urldispatcher.py:922
↓ 39 callersMethoddone
(self)
tests/test_client_response.py:29
↓ 39 callersFunctionmake_request
(app, protocol)
tests/test_web_websocket.py:48
↓ 37 callersMethodadd_subapp
(self, prefix: str, subapp: "Application")
aiohttp/web_app.py:343
↓ 36 callersMethodexception
(self)
aiohttp/streams.py:674
↓ 35 callersMethoddecode
(self, encoding: str = "utf-8", errors: str = "strict")
tests/test_payload.py:64
↓ 34 callersMethodget_written_bytes
Return all written bytes as a single bytes object.
tests/test_payload.py:215
↓ 34 callersMethodset_exception
( self, exc: BaseException, exc_cause: BaseException = _EXC_SENTINEL, )
aiohttp/streams.py:677
↓ 33 callersMethodenable_compression
( self, encoding: str = "deflate", strategy: int | None = None )
aiohttp/http_writer.py:91
↓ 33 callersMethodfeed_data
Receive a chunk of data to process. Return: PayloadState - The current state of payload processing. Th
aiohttp/http_parser.py:932
↓ 33 callersMethodfilter_cookies
Returns this jar's cookies filtered by their attributes.
aiohttp/cookiejar.py:448
↓ 32 callersMethodenable_chunking
(self)
aiohttp/http_writer.py:88
↓ 32 callersMethodsend_bytes
(self, data: bytes, compress: int | None = None)
aiohttp/web_ws.py:482
↓ 31 callersMethodfreeze
(self)
aiohttp/web_app.py:315
↓ 31 callersMethodsetup
(self)
aiohttp/web_runner.py:299
↓ 30 callersMethodcleanup
Causes on_cleanup signal Should be called after shutdown()
aiohttp/web_app.py:471
↓ 30 callersMethodwrite_headers
Write headers to the stream.
aiohttp/http_writer.py:207
↓ 29 callersMethoddecode
Return string representation of the value. This is named decode() to allow compatibility with bytes objects.
aiohttp/payload.py:246
↓ 29 callersFunctionparse_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 callersMethodadd_field
( self, name: str, value: Any, *, content_type: str | None = None,
aiohttp/formdata.py:47
↓ 28 callersMethodget
(self)
tests/test_web_urldispatcher.py:771
↓ 28 callersMethodprepare
(data)
tests/test_multipart.py:191
↓ 28 callersMethodrequest
Request instance.
aiohttp/abc.py:107
↓ 27 callersMethodget
( self, url: StrOrURL, **kwargs: Unpack[_RequestOptions], )
aiohttp/client.py:1419
↓ 27 callersFunctionstopper
(loop)
tests/test_run_app.py:90
↓ 26 callersMethodget
(self)
examples/web_classview.py:12
↓ 26 callersFunctionproxy_test_server
(aiohttp_raw_server, loop, monkeypatch)
tests/test_proxy_functional.py:269
↓ 25 callersMethodget_info
Return a dict with additional info useful for introspection
aiohttp/abc.py:73
↓ 23 callersMethod_feed_data
Return the next frame from the socket.
aiohttp/_websocket/reader_c.py:326
↓ 23 callersMethodfeed_data
(self, data: bytes, size: int = 0)
aiohttp/streams.py:284
↓ 23 callersMethodis_eof
Return True if 'feed_eof' was called.
aiohttp/streams.py:239
↓ 23 callersMethodload
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 callersMethodread
Reads body part data. decode: Decodes data following by encoding method from Content-Encoding header. If it missed
aiohttp/multipart.py:328
↓ 23 callersMethodroutes
(self)
aiohttp/web_urldispatcher.py:1065
↓ 22 callersFunctionget_request
(loop)
tests/test_proxy_functional.py:316
↓ 21 callersMethodclear
(self, predicate: abc.ClearCookiePredicate | None = None)
tests/test_client_session.py:764
↓ 21 callersFunctioncreate_session
(loop)
tests/test_client_session.py:48
↓ 21 callersMethodis_eof
(self)
aiohttp/streams.py:668
↓ 21 callersMethodread_chunk
Reads body part content chunk of the specified size. size: chunk size
aiohttp/multipart.py:351
↓ 21 callersMethodsend_frame
Send a frame over the websocket.
aiohttp/web_ws.py:465
↓ 20 callersMethodat_eof
Returns True if the boundary was reached or False otherwise.
aiohttp/multipart.py:522
↓ 20 callersMethodfeed_eof
(self)
aiohttp/streams.py:215
↓ 20 callersMethodflush
Flush the compressor synchronously. **WARNING: This method is NOT cancellation-safe when called after compress().** The flush() opera
aiohttp/compression_utils.py:252
↓ 20 callersMethodmatch
(self, request: Request)
aiohttp/web_urldispatcher.py:825
↓ 20 callersMethodread
(self)
aiohttp/streams.py:700
↓ 20 callersMethodupdate_cookies_from_headers
Update cookies from raw Set-Cookie headers.
aiohttp/abc.py:199
↓ 19 callersMethodget_extra_info
Extra info from protocol transport
aiohttp/web_request.py:834
↓ 19 callersFunctionpatch
(path: str, handler: _HandlerType, **kwargs: Any)
aiohttp/web_routedef.py:125
↓ 19 callersMethodreceive_str
( self: "WebSocketResponse[Literal[True]]", *, timeout: float | None = None )
aiohttp/web_ws.py:683
↓ 19 callersMethodrun
(self)
aiohttp/worker.py:62
next →1–100 of 5,569, ranked by callers