MCPcopy Create free account

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

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

↓ 20 callersFunctionaiohttp_raw_server
Factory to create a RawTestServer instance, given a web handler. aiohttp_raw_server(handler, **kwargs)
aiohttp/pytest_plugin.py:334
↓ 20 callersMethodclear
(self, predicate: ClearCookiePredicate | None = None)
aiohttp/cookiejar.py:353
↓ 20 callersMethodread
(self)
aiohttp/streams.py:711
↓ 19 callersMethodclone
( self, *, method: str | _SENTINEL = sentinel, rel_url: StrOrURL | _SENTINEL =
aiohttp/web_request.py:973
↓ 19 callersMethodget_extra_info
Extra info from protocol transport
aiohttp/web_request.py:915
↓ 19 callersFunctionpatch
(path: str, handler: _HandlerType, **kwargs: Any)
aiohttp/web_routedef.py:127
↓ 19 callersMethodrun
(self)
aiohttp/worker.py:62
↓ 19 callersMethodwrite
(self, data: bytes | bytearray | memoryview)
aiohttp/web_response.py:555
↓ 18 callersMethodcompressobj
(self, *args: Any, **kwargs: Any)
aiohttp/compression_utils.py:139
↓ 18 callersFunctionhandler
(request: web.Request)
tests/test_client_middleware.py:36
↓ 18 callersMethodis_ssl
(self)
aiohttp/client_reqrep.py:1152
↓ 18 callersMethodreadline
(self, *, max_line_length: int | None = None)
tests/test_multipart.py:93
↓ 17 callersMethod_attempt_started
A new upload attempt is dispatched; returns its generation token. Called before connecting, so a resend failing early settles as abor
aiohttp/client_reqrep.py:359
↓ 17 callersMethod_resolve_host
Resolve host and return list of addresses.
aiohttp/connector.py:1106
↓ 17 callersMethodclose
(self)
aiohttp/resolver.py:220
↓ 17 callersFunctionmake_conn
()
tests/test_connector.py:233
↓ 17 callersMethodsave
Save cookies to a file using JSON format. :param file_path: Path to file where cookies will be serialized, :class:`str` or :class
aiohttp/cookiejar.py:208
↓ 16 callersMethoddebug
(self)
aiohttp/web_app.py:328
↓ 16 callersMethodread
(self)
aiohttp/_websocket/reader_py.py:132
↓ 16 callersMethodset_status
( self, status: int, reason: str | None = None, )
aiohttp/web_response.py:149
↓ 16 callersMethodtrace_config_ctx
Return a new trace_config_ctx instance
aiohttp/tracing.py:88
↓ 15 callersMethod_handle_frame
( fin: bool, opcode: int, payload: bytes | bytearray, compress
tests/test_websocket_parser.py:46
↓ 15 callersMethodconnection_made
(self, transport)
tests/test_client_functional.py:4471
↓ 15 callersFunctioncontent_disposition_filename
( params: Mapping[str, str], name: str = "filename" )
aiohttp/multipart.py:192
↓ 15 callersMethoddecompress_sync
( self, data: Buffer, max_length: int = ZLIB_MAX_LENGTH_UNLIMITED )
aiohttp/compression_utils.py:382
↓ 15 callersFunctionset_exception
Set future exception. If the future is marked as complete, this function is a no-op. :param exc_cause: An exception that is a direct cause o
aiohttp/helpers.py:847
↓ 15 callersMethodset_response_params
( self, *, timer: BaseTimerContext | None = None, skip_payload: bool = False,
aiohttp/client_proto.py:245
↓ 15 callersMethodstart
(self)
aiohttp/web_runner.py:133
↓ 14 callersMethod_release
( self, key: "ConnectionKey", protocol: ResponseHandler, *, should_clo
aiohttp/connector.py:815
↓ 14 callersMethoddecode
Decodes data synchronously. Decodes data according the specified Content-Encoding or Content-Transfer-Encoding headers value.
aiohttp/multipart.py:561
↓ 14 callersMethoddecompress
(self, data: Any, max_length: int = 0)
tests/test_compression_utils.py:42
↓ 14 callersMethodend_http_chunk_receiving
(self)
aiohttp/streams.py:312
↓ 14 callersFunctiongen
()
tests/test_payload.py:163
↓ 14 callersMethodparse_frame
( self, data: bytes )
tests/test_websocket_parser.py:40
↓ 14 callersMethodreadany
(self)
aiohttp/streams.py:463
↓ 14 callersFunctionrun_url_dispatcher_benchmark
()
tests/test_benchmarks_web_urldispatcher.py:77
↓ 14 callersMethodset_cookie
Set or update response cookie. Sets new cookie or updates existent with new value. Also updates only those params which are not None.
aiohttp/web_response.py:225
↓ 14 callersMethodwrite_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:1538
↓ 13 callersMethod__init__
(self, domain: str)
aiohttp/web_urldispatcher.py:802
↓ 13 callersMethod_encode
Build digest authorization header for the current challenge. Args: method: The HTTP method (GET, POST, etc.)
aiohttp/client_middleware_digest_auth.py:224
↓ 13 callersFunction_mock_request
(method: str, path: str)
tests/test_benchmarks_web_urldispatcher.py:42
↓ 13 callersFunction_unquote
Unquote a cookie value. Vendored from http.cookies._unquote to ensure compatibility. Note: The original implementation checked for None
aiohttp/_cookie_helpers.py:151
↓ 13 callersMethodclose
(self)
aiohttp/connector.py:199
↓ 13 callersMethodenable_compression
Enables response compression encoding.
aiohttp/web_response.py:194
↓ 13 callersFunctiongen_ws_headers
( protocols="", compress=0, extension_text="", server_notakeover=False, client_notakeover=
tests/test_websocket_handshake.py:12
↓ 13 callersMethodhead
( self, url: StrOrURL, **kwargs: Unpack[_RequestOptions], )
aiohttp/client.py:1494
↓ 13 callersMethodrequest_reply_with_same_url
(self, url)
tests/test_cookiejar.py:494
↓ 12 callersMethod_create_connection
( self, req: ClientRequest, traces: list["Trace"], timeout: "ClientTimeout" )
tests/test_client_middleware.py:880
↓ 12 callersMethod_finalize
Mark the request terminal: no further attempts will start. Settles upload_complete unless the final attempt is still writing, in whic
aiohttp/client_reqrep.py:423
↓ 12 callersFunction_make_morsel
( name: str, value: str = "value", *, domain: str = "example.com", path: str = "/", se
tests/test_cookiejar.py:90
↓ 12 callersFunction_merge_ssl_params
( ssl: Union["SSLContext", bool, Fingerprint], verify_ssl: bool | None, ssl_context: Optional["SSL
aiohttp/client_reqrep.py:180
↓ 12 callersFunction_saved_cookie
Build a record in the format CookieJar.save() writes.
tests/test_cookiejar.py:72
↓ 12 callersFunction_write_saved
(tmp_path: Path, data: object)
tests/test_cookiejar.py:66
↓ 12 callersMethodadd_resource
(self, path: str, *, name: str | None = None)
aiohttp/web_urldispatcher.py:1143
↓ 12 callersMethodbegin_http_chunk_receiving
(self)
aiohttp/streams.py:304
↓ 12 callersMethodconnection_made
(self, transport: asyncio.BaseTransport)
aiohttp/base_protocol.py:122
↓ 12 callersMethodfreeze
(self)
aiohttp/tracing.py:92
↓ 12 callersFunctionhandler
(request)
tests/test_web_log.py:291
↓ 12 callersFunctionmake_runner
(loop: Any, app: Any)
tests/test_web_runner.py:19
↓ 12 callersMethodnext
Emits the next multipart body part.
aiohttp/multipart.py:768
↓ 12 callersMethodping
(self, message: bytes = b"")
aiohttp/web_ws.py:464
↓ 12 callersMethodresolve
( self, host: str, port: int = 0, family: socket.AddressFamily = socket.AF_INET )
aiohttp/resolver.py:130
↓ 12 callersMethodsend_json
( self, data: Any, compress: int | None = None, *, dumps: JSONEncoder
aiohttp/web_ws.py:499
↓ 12 callersMethodstart_server
(self)
aiohttp/test_utils.py:311
↓ 12 callersMethodwrite_eof
(self, data: bytes = b"")
aiohttp/web_response.py:801
↓ 11 callersMethodcall
(self, request, handler: Handler)
tests/test_web_middleware.py:509
↓ 11 callersMethodclose
(self)
aiohttp/client_reqrep.py:800
↓ 11 callersMethodprepare
(self, request: "BaseRequest")
aiohttp/web_fileresponse.py:256
↓ 11 callersMethodput
( self, url: StrOrURL, **kwargs: Unpack[_RequestOptions], )
aiohttp/client.py:1506
↓ 11 callersMethodset_parser
( self, parser: WebSocketReader, data_received_cb: Callable[[], None] | None = None,
aiohttp/web_protocol.py:418
↓ 11 callersFunctionset_result
(fut: "asyncio.Future[_T]", result: _T)
aiohttp/helpers.py:831
↓ 11 callersMethodstop
(self, request: web.Request)
tests/test_run_app.py:1003
↓ 11 callersMethodupdate_body
Update request body and close previous payload if needed. This method safely updates the request body by first closing any existing
aiohttp/client_reqrep.py:1442
↓ 11 callersMethodupdate_cookies
(self, cookies: Any, response_url: URL = URL())
tests/test_client_session.py:770
↓ 11 callersMethodwrite
Write payload to the writer stream. Args: writer: An AbstractStreamWriter instance that handles the actual writing
aiohttp/payload.py:254
↓ 11 callersMethodwrite_with_length
Write async iterable payload with a specific content length constraint. Args: writer: An AbstractStreamWriter instance t
aiohttp/payload.py:1032
↓ 10 callersMethod__init__
( self, value: Any, headers: ( _CIMultiDict | dict[str, str] | Iterable[tu
aiohttp/payload.py:147
↓ 10 callersMethod_drop_timeout
(self)
aiohttp/client_proto.py:282
↓ 10 callersMethod_get_ssl_context
Logic to get the correct SSL context 0. if req.ssl is false, return None 1. if ssl_context is specified in req, use it 2. if
aiohttp/connector.py:1267
↓ 10 callersMethod_handshake
( self, request: BaseRequest )
aiohttp/web_ws.py:286
↓ 10 callersMethodadd_done_callback
Dummy method.
tests/test_client_request.py:42
↓ 10 callersMethodappend_json
Helper to append JSON part.
aiohttp/multipart.py:1077
↓ 10 callersMethodat_eof
(self)
tests/test_multipart.py:89
↓ 10 callersMethodclose
Close the payload if it holds any resources. IMPORTANT: This method must not await anything that might not finish immediatel
aiohttp/payload.py:327
↓ 10 callersMethoddata_received
(self, data: bytes)
aiohttp/client_proto.py:316
↓ 10 callersMethoddata_received
(self, data)
tests/test_client_functional.py:4475
↓ 10 callersMethodenable_compression
Compression not implemented for test writer.
tests/test_payload.py:36
↓ 10 callersMethodfilter_cookies
(self, request_url: URL)
tests/test_client_session.py:773
↓ 10 callersMethodread
Read response payload.
aiohttp/client_reqrep.py:898
↓ 10 callersMethodstart
(self)
aiohttp/web_runner.py:253
↓ 10 callersMethodstartup
Causes on_startup signal Should be called in the event loop along with the request handler.
aiohttp/web_app.py:460
↓ 9 callersMethod_attempt_finished
(self, gen: int)
aiohttp/client_reqrep.py:397
↓ 9 callersMethod_attempt_writing
The attempt's body write has begun; settling now defers to it.
aiohttp/client_reqrep.py:374
↓ 9 callersFunction_create_example_app
()
tests/test_test_utils.py:37
↓ 9 callersMethod_request
( self, method: str, str_or_url: StrOrURL, *, params: Query = None,
aiohttp/client.py:558
↓ 9 callersMethod_resume_reading_if_drained
(self)
aiohttp/web_protocol.py:492
↓ 9 callersMethod_set_or_restore_start_position
Set or restore the start position of the file-like object.
aiohttp/payload.py:474
↓ 9 callersFunctioncb
(app: web.Application)
tests/test_web_app.py:187
↓ 9 callersMethodenable_chunked_encoding
Enables automatic chunked transfer encoding.
aiohttp/web_response.py:184
↓ 9 callersMethodfreeze
Freeze router.
aiohttp/abc.py:42
← previousnext →101–200 of 5,960, ranked by callers