MCPcopy Create free account

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

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

↓ 571 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
↓ 435 callersMethodget
(self)
tests/test_classbasedview.py:19
↓ 300 callersMethodadd_route
( self, method: str, handler: type[AbstractView] | Handler, *, expect_
aiohttp/web_urldispatcher.py:344
↓ 289 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:1213
↓ 285 callersMethodfeed_data
(self, data: _T, size: int = 0)
aiohttp/streams.py:699
↓ 276 callersMethodappend
(self, obj: Any, headers: Mapping[str, str] | None = None)
aiohttp/multipart.py:1024
↓ 235 callersMethodclose
(self)
tests/test_connector.py:4639
↓ 228 callersMethodread
(self, size=None)
tests/test_multipart.py:86
↓ 207 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
↓ 165 callersMethodpost
(self)
tests/test_web_urldispatcher.py:774
↓ 158 callersMethodrelease
(self)
aiohttp/connector.py:206
↓ 153 callersMethodws_connect
( self, url: StrOrURL, *, decode_text: Literal[True] = ...,
aiohttp/client.py:1098
↓ 150 callersMethodencode
Encode credentials.
aiohttp/helpers.py:195
↓ 141 callersMethodtext
(self)
aiohttp/web_response.py:756
↓ 129 callersMethodadd_post
Shortcut for add_route with method POST.
aiohttp/web_urldispatcher.py:1232
↓ 117 callersMethodpatch
( self, url: StrOrURL, **kwargs: Unpack[_RequestOptions], )
aiohttp/client.py:1512
↓ 114 callersFunctionaiohttp_server
Factory to create a TestServer instance, given an app. aiohttp_server(app, **kwargs)
aiohttp/pytest_plugin.py:295
↓ 103 callersMethodreceive
( self: "WebSocketResponse[Literal[True]]", timeout: float | None = None )
aiohttp/web_ws.py:608
↓ 100 callersFunctionparse_content_disposition
( header: str | None, )
aiohttp/multipart.py:83
↓ 98 callersFunctionmake_request
(loop)
tests/test_client_request.py:50
↓ 96 callersMethodmake_url
(self, path: StrOrURL)
aiohttp/test_utils.py:341
↓ 80 callersFunctionmake_handler
()
tests/test_urldispatch.py:30
↓ 76 callersMethodwrite
(self, writer)
tests/test_payload.py:67
↓ 71 callersMethodclose
Close all opened transports. :param abort_ssl: If True, SSL connections will be aborted immediately without
aiohttp/connector.py:1072
↓ 71 callersMethodget
(self, key: AppKey[_T], default: None = ...)
aiohttp/web_app.py:244
↓ 71 callersMethodupdate_cookies
Update cookies.
aiohttp/cookiejar.py:521
↓ 69 callersMethodclose
Close all opened transports. :param abort_ssl: If True, SSL connections will be aborted immediately without performi
aiohttp/connector.py:490
↓ 68 callersMethodadd
(self, key: tuple[str, int], addrs: list[ResolveResult])
aiohttp/connector.py:865
↓ 68 callersFunctionparse_set_cookie_headers
Parse Set-Cookie fields into at most one cookie per field. Fields with control characters, oversized or nameless pairs, names outside the all
aiohttp/_cookie_helpers.py:363
↓ 66 callersMethod_make_one
(self, *args, **kwargs)
tests/test_streams.py:75
↓ 66 callersMethodclose
(self)
aiohttp/client_reqrep.py:1754
↓ 65 callersMethodcompress
(self)
aiohttp/web_ws.py:445
↓ 61 callersMethodfeed_eof
(self)
aiohttp/streams.py:705
↓ 61 callersMethodfilter_cookies
Returns this jar's cookies filtered by their attributes.
aiohttp/cookiejar.py:687
↓ 60 callersMethodadd_routes
(self, routes: Iterable[AbstractRouteDef])
aiohttp/web_app.py:381
↓ 60 callersMethodclose
Close underlying connector. Release all acquired resources.
aiohttp/client.py:1586
↓ 59 callersMethodprepare
(self, request: BaseRequest)
aiohttp/web_ws.py:274
↓ 58 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:157
↓ 57 callersMethodclose
Close websocket connection.
aiohttp/web_ws.py:531
↓ 57 callersMethodsend_str
(self, data: str, compress: int | None = None)
aiohttp/web_ws.py:483
↓ 56 callersMethodresolve
( self, host: str, port: int = 0, family: int = socket.AF_INET )
tests/test_connector.py:4623
↓ 55 callersMethodadd_static
Add static files view. prefix - url prefix path - folder with files
aiohttp/web_urldispatcher.py:1171
↓ 55 callersMethodconnect
Get from pool or create new connection.
aiohttp/connector.py:631
↓ 55 callersMethodexception
(self)
aiohttp/streams.py:685
↓ 55 callersFunctionmake_request
( method, path, headers=CIMultiDict(), version=HttpVersion11, on_response_prepare=None,
tests/test_web_response.py:33
↓ 54 callersMethodsend
(self, conn: "Connection")
aiohttp/client_reqrep.py:1643
↓ 49 callersMethodjson
Return BODY as JSON.
aiohttp/web_request.py:771
↓ 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:3763
↓ 46 callersFunctioncreate_mocked_conn
(conn_closing_result=None, **kwargs)
tests/test_connector.py:105
↓ 46 callersMethodwrite_eof
(self, chunk: bytes = b"")
aiohttp/http_writer.py:268
↓ 45 callersMethoddone
(self)
tests/test_client_response.py:30
↓ 44 callersMethodprepare
(self, request: "BaseRequest")
aiohttp/web_response.py:458
↓ 42 callersMethodurl_for
(self, *args: str, **kwargs: str)
aiohttp/web_urldispatcher.py:931
↓ 39 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:250
↓ 39 callersFunctionmake_request
(app, protocol)
tests/test_web_websocket.py:48
↓ 37 callersMethodadd_subapp
(self, prefix: str, subapp: "Application")
aiohttp/web_app.py:346
↓ 37 callersMethodset_exception
( self, exc: BaseException, exc_cause: BaseException = _EXC_SENTINEL, )
aiohttp/streams.py:688
↓ 36 callersMethodupdate_cookies_from_headers
Update cookies from raw Set-Cookie headers.
aiohttp/cookiejar.py:525
↓ 35 callersMethoddecode
(self, encoding: str = "utf-8", errors: str = "strict")
tests/test_payload.py:64
↓ 35 callersMethodenable_compression
( self, encoding: str = "deflate", strategy: int | None = None )
aiohttp/http_writer.py:92
↓ 35 callersMethodfeed_data
Receive a chunk of data to process. Return: PayloadState - The current state of payload processing. Th
aiohttp/http_parser.py:990
↓ 35 callersMethodget_written_bytes
Return all written bytes as a single bytes object.
tests/test_payload.py:215
↓ 33 callersFunctionbuild_frame
( message, opcode, use_mask=False, noheader=False, is_fin=True, ZLibBackend=None )
tests/test_websocket_parser.py:60
↓ 33 callersMethodenable_chunking
(self)
aiohttp/http_writer.py:89
↓ 32 callersMethodsend_bytes
(self, data: bytes, compress: int | None = None)
aiohttp/web_ws.py:492
↓ 32 callersMethodsetup
(self)
aiohttp/web_runner.py:299
↓ 31 callersMethodadd_field
( self, name: str, value: Any, *, content_type: str | None = None,
aiohttp/formdata.py:47
↓ 31 callersMethodcleanup
Causes on_cleanup signal Should be called after shutdown()
aiohttp/web_app.py:474
↓ 31 callersMethodfreeze
(self)
aiohttp/web_app.py:318
↓ 31 callersMethodwrite_headers
Write headers to the stream.
aiohttp/http_writer.py:215
↓ 29 callersMethod_feed_data
Return the next frame from the socket.
aiohttp/_websocket/reader_py.py:391
↓ 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:180
↓ 29 callersMethodread_chunk
Reads body part content chunk of the specified size. size: chunk size
aiohttp/multipart.py:359
↓ 28 callersMethoddecode
Return string representation of the value. This is named decode() to allow compatibility with bytes objects.
aiohttp/payload.py:246
↓ 28 callersMethodget
( self, url: StrOrURL, **kwargs: Unpack[_RequestOptions], )
aiohttp/client.py:1482
↓ 28 callersMethodget
(self)
tests/test_web_urldispatcher.py:771
↓ 28 callersMethodprepare
(data)
tests/test_multipart.py:202
↓ 28 callersMethodrequest
Request instance.
aiohttp/abc.py:107
↓ 27 callersMethodflush
Flush the compressor synchronously. **WARNING: This method is NOT cancellation-safe when called after compress().** The flush() opera
aiohttp/compression_utils.py:347
↓ 27 callersFunctionstopper
(loop)
tests/test_run_app.py:90
↓ 26 callersMethodfeed_data
(self, data: bytes, size: int = 0)
aiohttp/streams.py:284
↓ 26 callersMethodget
(self)
examples/web_classview.py:12
↓ 26 callersFunctionproxy_test_server
(aiohttp_raw_server, loop, monkeypatch)
tests/test_proxy_functional.py:269
↓ 25 callersMethodat_eof
Returns True if the boundary was reached or False otherwise.
aiohttp/multipart.py:546
↓ 25 callersMethodfeed_data
(self, data: bytes | bytearray | memoryview)
aiohttp/_websocket/reader_py.py:225
↓ 25 callersMethodget_info
Return a dict with additional info useful for introspection
aiohttp/abc.py:73
↓ 25 callersMethodmatch
(self, request: Request)
aiohttp/web_urldispatcher.py:826
↓ 24 callersMethodis_eof
Return True if 'feed_eof' was called.
aiohttp/streams.py:239
↓ 24 callersMethodis_eof
(self)
aiohttp/streams.py:679
↓ 23 callersMethodfeed_eof
(self)
aiohttp/streams.py:215
↓ 23 callersMethodreaduntil
( self, separator: bytes = b"\n", *, max_size: int | None = None )
aiohttp/streams.py:372
↓ 23 callersMethodroutes
(self)
aiohttp/web_urldispatcher.py:1074
↓ 22 callersMethodclear
(self, predicate: abc.ClearCookiePredicate | None = None)
tests/test_client_session.py:764
↓ 22 callersFunctionget_request
(loop)
tests/test_proxy_functional.py:316
↓ 22 callersMethodread
Reads body part data. decode: Decodes data following by encoding method from Content-Encoding header. If it missed
aiohttp/multipart.py:336
↓ 21 callersFunctioncreate_session
(loop)
tests/test_client_session.py:48
↓ 21 callersMethoddrain
No-op for test writer.
tests/test_payload.py:33
↓ 21 callersMethodreceive_str
( self: "WebSocketResponse[Literal[True]]", *, timeout: float | None = None )
aiohttp/web_ws.py:698
↓ 21 callersMethodsend_frame
Send a frame over the websocket.
aiohttp/web_ws.py:475
next →1–100 of 5,960, ranked by callers