当前位置: 首页 > news >正文

一图看懂 aiohttp 模块:基于 asyncio 的异步HTTP网络库, 资料整理+笔记(大全)

本文由 大侠(AhcaoZhu)原创,转载请声明。
链接: https://blog.csdn.net/Ahcao2008

Alt

一图看懂 aiohttp 模块:基于 asyncio 的异步HTTP网络库, 资料整理+笔记(大全)

  • 摘要
  • 模块图
  • 类关系图
  • 模块全展开
    • 【aiohttp】
    • 统计
    • 常量
    • 模块
      • 1 aiohttp.hdrs
      • 2 aiohttp.typedefs
      • 3 aiohttp.http_exceptions
      • 4 aiohttp.tcp_helpers
      • 5 aiohttp.base_protocol
      • 6 aiohttp.log
      • 7 aiohttp._helpers
      • 8 aiohttp.helpers
      • 9 aiohttp.abc
      • 10 aiohttp._http_writer
      • 11 aiohttp.http_writer
      • 12 aiohttp.streams
      • 13 aiohttp._http_parser
      • 14 aiohttp.http_parser
      • 15 aiohttp._websocket
      • 16 aiohttp.http_websocket
      • 17 aiohttp.http
      • 18 aiohttp.payload
      • 19 aiohttp.client_exceptions
      • 20 aiohttp.multipart
      • 21 aiohttp.formdata
      • 22 aiohttp.client_reqrep
      • 23 aiohttp.client_ws
      • 24 aiohttp.client_proto
      • 25 aiohttp.locks
      • 26 aiohttp.resolver
      • 27 aiohttp.connector
      • 28 aiohttp.cookiejar
      • 29 aiohttp._frozenlist
      • 30 aiohttp.frozenlist
      • 31 aiohttp.signals
      • 32 aiohttp.tracing
      • 33 aiohttp.client
      • 34 aiohttp.payload_streamer
    • 函数
      • 35 request
      • 36 content_disposition_filename(params: Mapping[str, str], name: str = 'filename') -> Union[str, NoneType]
      • 37 parse_content_disposition(header: Union[str, NoneType]) -> Tuple[Union[str, NoneType], Dict[str, str]]
      • 38 get_payload(data: Any, *args: Any, **kwargs: Any) -> 'Payload'
      • 39 aiohttp.connector.BaseConnector
        • property
        • method
        • 5 close(self) -> Awaitable[None]:
        • 6 connect()
      • 40 aiohttp.client_exceptions.ClientConnectionError
      • 41 aiohttp.client_exceptions.ClientConnectorCertificateError
        • property
      • 42 aiohttp.client_exceptions.ClientConnectorError
        • property
      • 43 aiohttp.client_exceptions.ClientConnectorSSLError
      • 44 aiohttp.client_exceptions.ClientError
      • 45 aiohttp.client_exceptions.ClientHttpProxyError
      • 46 aiohttp.client_exceptions.ClientOSError
      • 47 aiohttp.client_exceptions.ClientPayloadError
      • 48 aiohttp.client_exceptions.ClientProxyConnectionError
      • 49 aiohttp.client_reqrep.ClientRequest
        • data
        • property
        • method
        • 13 close(self) -> None:
        • 14 is_ssl(self) -> bool:
        • 15 keep_alive(self) -> bool:
        • 16 send()
        • 17 terminate(self) -> None:
        • 18 update_auth(self, auth: Optional[BasicAuth]) -> None:
        • 19 update_auto_headers(self, skip_auto_headers: Iterable[str]) -> None:
        • 20 update_body_from_data(self, body: Any) -> None:
        • 21 update_content_encoding(self, data: Any) -> None:
        • 22 update_cookies(self, cookies: Optional[LooseCookies]) -> None:
        • 23 update_expect_continue(self, expect: bool = False) -> None:
        • 24 update_headers(self, headers: Optional[LooseHeaders]) -> None:
        • 25 update_host(self, url: URL) -> None:
        • 26 update_proxy(
        • 27 update_transfer_encoding(self) -> None:
        • 28 update_version(self, version: Union[http.HttpVersion, str]) -> None:
        • 29 write_bytes()
      • 50 aiohttp.client_reqrep.ClientResponse
        • data
        • property
        • method
        • 18 close(self) -> None:
        • 19 get_encoding(self) -> str:
        • 20 json()
        • 21 raise_for_status(self) -> None:
        • 22 read()
        • 23 release(self) -> Any:
        • 24 start()
        • 25 text()
        • 26 wait_for_close()
      • 51 aiohttp.client_exceptions.ClientResponseError
        • property
      • 52 aiohttp.client.ClientSession
        • data
        • property
        • method
        • 18 close(self) -> None:
        • 19 delete(self, url: StrOrURL, **kwargs: Any) -> "_RequestContextManager":
        • 20 detach(self) -> None:
        • 21 get(self, url: StrOrURL, *, allow_redirects: bool = True, **kwargs: Any) -> "_RequestContextManager"
        • 22 head(
        • 23 options(
        • 24 patch(
        • 25 post(
        • 26 put(
        • 27 request(
        • 28 ws_connect(
      • 53 aiohttp.client_exceptions.ClientSSLError
      • 54 aiohttp.client.ClientTimeout
        • data
      • 55 aiohttp.client_ws.ClientWebSocketResponse
        • property
        • method
        • 6 close()
        • 7 exception(self) -> Optional[BaseException]:
        • 8 get_extra_info(self, name: str, default: Any = None) -> Any:
        • 9 ping()
        • 10 pong()
        • 11 receive()
        • 12 receive_bytes()
        • 13 receive_json()
        • 14 receive_str()
        • 15 send_bytes()
        • 16 send_json()
        • 17 send_str()
      • 56 aiohttp.client_exceptions.ContentTypeError
      • 57 aiohttp.client_reqrep.Fingerprint
        • data
        • property
        • method
        • 3 check(self, transport: asyncio.Transport) -> None:
      • 58 aiohttp.client_exceptions.InvalidURL
        • property
      • 59 aiohttp.connector.NamedPipeConnector
        • property
      • 60 aiohttp.client_reqrep.RequestInfo
        • data
        • method
        • 5 real_url_default(self) -> URL:
      • 61 aiohttp.client_exceptions.ServerConnectionError
      • 62 aiohttp.client_exceptions.ServerDisconnectedError
      • 63 aiohttp.client_exceptions.ServerFingerprintMismatch
      • 64 aiohttp.client_exceptions.ServerTimeoutError
      • 65 aiohttp.connector.TCPConnector
        • property
        • method
        • 3 clear_dns_cache(
        • 4 close(self) -> Awaitable[None]:
      • 66 aiohttp.client_exceptions.TooManyRedirects
      • 67 aiohttp.connector.UnixConnector
        • property
      • 68 aiohttp.client_exceptions.WSServerHandshakeError
      • 69 aiohttp.cookiejar.CookieJar
        • data
        • method
        • 8 clear(self) -> None:
        • 9 filter_cookies(
        • 10 load(self, file_path: PathLike) -> None:
        • 11 save(self, file_path: PathLike) -> None:
        • 12 update_cookies(self, cookies: LooseCookies, response_url: URL = URL()) -> None:
      • 70 aiohttp.cookiejar.DummyCookieJar
        • method
        • 1 clear(self) -> None:
        • 2 filter_cookies(self, request_url: URL) -> "BaseCookie[str]":
        • 3 update_cookies(self, cookies: LooseCookies, response_url: URL = URL()) -> None:
      • 71 aiohttp.formdata.FormData
        • property
        • method
        • 2 add_field(
        • 3 add_fields(self, *fields: Any) -> None:
      • 72 aiohttp.helpers.BasicAuth
        • method
        • 1 encode(self) -> str:
        • class method
        • 2 decode(cls, auth_header: str, encoding: str = "latin1") -> "BasicAuth":
        • 3 from_url(cls, url: URL, *, encoding: str = "latin1") -> Optional["BasicAuth"]:
      • 73 aiohttp.helpers.ChainMapProxy
        • method
        • 1 get(self, key: str, default: Any = None) -> Any:
      • 74 aiohttp.http_writer.HttpVersion
        • property
      • 75 aiohttp.http_websocket.WebSocketError
      • 76 WSCloseCode
        • data
      • 77 aiohttp.http_websocket.WSMessage
        • method
        • 1 json(self, *, loads: Callable[[Any], Any] = json.loads) -> Any:
      • 78 WSMsgType
        • data
      • 79 aiohttp.multipart.BadContentDispositionHeader
      • 80 aiohttp.multipart.BadContentDispositionParam
      • 81 aiohttp.multipart.BodyPartReader
        • data
        • method
        • 4 at_eof(self) -> bool:
        • 5 decode(self, data: bytes) -> bytes:
        • 6 form()
        • 7 get_charset(self, default: str) -> str:
        • 8 json()
        • 9 next()
        • 10 read()
        • 11 read_chunk()
        • 12 readline()
        • 13 release()
        • 14 text()
      • 82 aiohttp.multipart.MultipartReader
        • data
        • method
        • 4 at_eof(self) -> bool:
        • 5 fetch_next_part()
        • 6 next()
        • 7 release()
        • class method
        • 8 from_response(
      • 83 aiohttp.multipart.MultipartWriter
        • property
        • method
        • 3 append(self, obj: Any, headers: Optional[MultiMapping[str]] = None) -> Payload:
        • 4 append_form(
        • 5 append_json(
        • 6 append_payload(self, payload: Payload) -> Payload:
        • 7 write()
      • 84 aiohttp.payload.AsyncIterablePayload
        • method
        • 1 write()
      • 85 aiohttp.payload.BufferedReaderPayload
        • property
      • 86 aiohttp.payload.BytesIOPayload
        • property
      • 87 aiohttp.payload.BytesPayload
        • method
        • 1 write()
      • 88 aiohttp.payload.IOBasePayload
        • method
        • 1 write()
      • 89 aiohttp.payload.JsonPayload
      • 90 aiohttp.payload.Payload
        • property
        • method
        • 6 set_content_disposition(

摘要

全文介绍系统内置 aiohttp 模块、函数、类及类的方法和属性。
它通过代码抓取并经AI智能翻译和人工校对。
是一部不可多得的权威字典类工具书。它是系列集的一部分。后续陆续发布、敬请关注。【原创:AhcaoZhu大侠】

模块图

aiohttp-mod

aiohttpaiohttp.hdrsaiohttp.typedefsaiohttp.http_exceptionsaiohttp.tcp_helpersaiohttp.base_protocolaiohttp.logaiohttp._helpersaiohttp.helpers◆base64◆cgi◆netrc◆platform◆weakref◆async_timeout◆attraiohttp.abcaiohttp._http_writeraiohttp.http_writeraiohttp.streamsaiohttp._http_parseraiohttp.http_parseraiohttp._websocketaiohttp.http_websocketaiohttp.http◆httpaiohttp.payload◆mimetypesaiohttp.client_exceptions◆sslaiohttp.multipart◆uuidaiohttp.formdataaiohttp.client_reqrepaiohttp.client_wsaiohttp.client_protoaiohttp.locksaiohttp.resolveraiohttp.connectoraiohttp.cookiejaraiohttp._frozenlistaiohttp.frozenlistaiohttp.signalsaiohttp.tracingaiohttp.clientaiohttp.payload_streamer

类关系图

aiohttp-class

◆object◆BaseException◆Exception◆OSErroraiohttp.client_exceptions.ClientErroraiohttp.client_exceptions.ClientConnectionErroraiohttp.client_exceptions.ClientOSErroraiohttp.client_exceptions.ClientConnectorErroraiohttp.client_exceptions.ClientProxyConnectionErroraiohttp.client_exceptions.ClientSSLErroraiohttp.client_exceptions.ClientConnectorCertificateErroraiohttp.client_exceptions.ClientConnectorSSLErroraiohttp.client_exceptions.ServerConnectionErroraiohttp.client_exceptions.ServerDisconnectedErroraiohttp.client_exceptions.ServerFingerprintMismatchaiohttp.client_exceptions.ServerTimeoutErroraiohttp.client_exceptions.ClientPayloadErroraiohttp.client_exceptions.ClientResponseErroraiohttp.client_exceptions.ClientHttpProxyErroraiohttp.client_exceptions.ContentTypeErroraiohttp.client_exceptions.TooManyRedirectsaiohttp.client_exceptions.WSServerHandshakeErroraiohttp.client_exceptions.InvalidURL◆ssl.SSLErroraiohttp.client_exceptions.ClientError◆ssl.SSLCertVerificationErroraiohttp.client_exceptions.ClientError◆ValueErroraiohttp.client_exceptions.ClientError◆Warning◆RuntimeWarningaiohttp.multipart.BadContentDispositionHeaderaiohttp.multipart.BadContentDispositionParamaiohttp.client_exceptions.ClientErroraiohttp.http_exceptions.HttpProcessingErroraiohttp.http_exceptions.BadHttpMessageaiohttp.http_exceptions.BadStatusLineaiohttp.http_exceptions.HttpBadRequestaiohttp.http_exceptions.InvalidHeaderaiohttp.http_exceptions.InvalidURLErroraiohttp.http_exceptions.LineTooLongaiohttp.http_exceptions.PayloadEncodingErroraiohttp.http_exceptions.ContentEncodingErroraiohttp.http_exceptions.ContentLengthErroraiohttp.http_exceptions.TransferEncodingErroraiohttp.http_websocket.WSHandshakeErroraiohttp.http_websocket.WebSocketErroraiohttp.payload.LookupErroraiohttp.streams.EofStream◆concurrent.futures._base.Erroraiohttp.client_exceptions.ClientError◆abc.ABCaiohttp.abc.AbstractAccessLoggeraiohttp.abc.AbstractMatchInfoaiohttp.abc.AbstractResolveraiohttp.resolver.AsyncResolveraiohttp.resolver.ThreadedResolveraiohttp.abc.AbstractRouteraiohttp.abc.AbstractStreamWriteraiohttp.http_writer.StreamWriteraiohttp.abc.AbstractViewaiohttp.http_parser.HttpParseraiohttp.http_parser.HttpRequestParseraiohttp.http_parser.HttpResponseParseraiohttp.payload.Payloadaiohttp.multipart.BodyPartReaderPayloadaiohttp.multipart.MultipartWriteraiohttp.payload.AsyncIterablePayloadaiohttp.payload.StreamReaderPayloadaiohttp.payload.BytesPayloadaiohttp.payload.JsonPayloadaiohttp.payload.StringPayloadaiohttp.payload.StringIOPayloadaiohttp.payload.IOBasePayloadaiohttp.payload.BufferedReaderPayloadaiohttp.payload.BytesIOPayloadaiohttp.payload.TextIOPayloadaiohttp.payload_streamer.StreamWrapperPayloadaiohttp.payload_streamer.StreamPayload◆contextlib.AbstractContextManageraiohttp.helpers.BaseTimerContextaiohttp.helpers.TimerContextaiohttp.helpers.TimerNoopaiohttp._frozenlist.FrozenListaiohttp.signals.Signalaiohttp._helpers.reifyaiohttp._http_parser.HttpParseraiohttp._http_parser.HttpRequestParseraiohttp._http_parser.HttpResponseParseraiohttp._http_parser.RawRequestMessageaiohttp._http_parser.RawResponseMessageaiohttp.client.ClientSessionaiohttp.client.ClientTimeoutaiohttp.client._SessionRequestContextManageraiohttp.client_reqrep.ClientRequestaiohttp.client_reqrep.ConnectionKeyaiohttp.client_reqrep.ContentDispositionaiohttp.client_reqrep.Fingerprintaiohttp.client_reqrep.RequestInfoaiohttp.client_ws.ClientWebSocketResponseaiohttp.connector.BaseConnectoraiohttp.connector.NamedPipeConnectoraiohttp.connector.TCPConnectoraiohttp.connector.UnixConnectoraiohttp.connector.Connectionaiohttp.connector._DNSCacheTableaiohttp.connector._DeprecationWaiteraiohttp.connector._TransportPlaceholderaiohttp.formdata.FormDataaiohttp.helpers.HeadersMixinaiohttp.client_reqrep.ClientResponseaiohttp.helpers.MimeTypeaiohttp.helpers.ProxyInfoaiohttp.helpers.TimeoutHandleaiohttp.helpers.noopaiohttp.http_parser.DeflateBufferaiohttp.http_parser.HeadersParseraiohttp.http_parser.HttpPayloadParseraiohttp.http_websocket.WebSocketReaderaiohttp.http_websocket.WebSocketWriteraiohttp.locks.EventResultOrErroraiohttp.multipart.BodyPartReaderaiohttp.multipart.MultipartPayloadWriteraiohttp.multipart.MultipartReaderaiohttp.multipart.MultipartResponseWrapperaiohttp.payload.PayloadRegistryaiohttp.payload.payload_typeaiohttp.payload_streamer._stream_wrapperaiohttp.payload_streamer.streameraiohttp.streams.AsyncStreamReaderMixinaiohttp.streams.EmptyStreamReaderaiohttp.streams.StreamReaderaiohttp.streams.ChunkTupleAsyncStreamIteratoraiohttp.tracing.Traceaiohttp.tracing.TraceConfigaiohttp.tracing.TraceConnectionCreateEndParamsaiohttp.tracing.TraceConnectionCreateStartParamsaiohttp.tracing.TraceConnectionQueuedEndParamsaiohttp.tracing.TraceConnectionQueuedStartParamsaiohttp.tracing.TraceConnectionReuseconnParamsaiohttp.tracing.TraceDnsCacheHitParamsaiohttp.tracing.TraceDnsCacheMissParamsaiohttp.tracing.TraceDnsResolveHostEndParamsaiohttp.tracing.TraceDnsResolveHostStartParamsaiohttp.tracing.TraceRequestChunkSentParamsaiohttp.tracing.TraceRequestEndParamsaiohttp.tracing.TraceRequestExceptionParamsaiohttp.tracing.TraceRequestRedirectParamsaiohttp.tracing.TraceRequestStartParamsaiohttp.tracing.TraceResponseChunkReceivedParams◆async_timeout.timeoutaiohttp.helpers.CeilTimeout◆asyncio.protocols.BaseProtocol◆asyncio.protocols.Protocolaiohttp.base_protocol.BaseProtocolaiohttp.client_proto.ResponseHandler◆collections.abc.Container◆collections.abc.Iterable◆collections.abc.Sizedaiohttp.abc.AbstractCookieJaraiohttp.cookiejar.CookieJaraiohttp.cookiejar.DummyCookieJar◆collections.abc.Collection◆collections.abc.Mappingaiohttp.helpers.ChainMapProxy◆collections.abc.Reversible◆collections.abc.Sequence◆collections.abc.MutableSequenceaiohttp.frozenlist.FrozenList◆int◆IntEnumChunkStateParseStateWSCloseCodeWSMsgTypeWSParserState◆strOrder◆tupleaiohttp.helpers.BasicAuthaiohttp.helpers.BasicAuthaiohttp.http_parser.RawRequestMessageaiohttp.http_parser.RawResponseMessageaiohttp.http_websocket._WSMessageBaseaiohttp.http_websocket.WSMessageaiohttp.http_writer.HttpVersion◆typing.Genericaiohttp.helpers.reifyaiohttp.streams.AsyncStreamIteratoraiohttp.streams.DataQueueaiohttp.streams.FlowControlDataQueue◆collections.abc.Awaitable◆collections.abc.Coroutineaiohttp.client._BaseRequestContextManageraiohttp.client._RequestContextManageraiohttp.client._WSRequestContextManager◆typing_extensions.Protocolaiohttp.helpers._TSelf

模块全展开

【aiohttp】

aiohttp, fullname=aiohttp, file=aiohttp_init_.py

统计

序号类别数量
4str5
5tuple1
6list1
8dict2
9module34
10class81
11function4
13residual8
14system12
15private5
16all136

常量

模块

1 aiohttp.hdrs

hdrs, fullname=aiohttp.hdrs, file=aiohttp\hdrs.py

HTTP报头常量。

2 aiohttp.typedefs

typedefs, fullname=aiohttp.typedefs, file=aiohttp\typedefs.py

3 aiohttp.http_exceptions

http_exceptions, fullname=aiohttp.http_exceptions, file=aiohttp\http_exceptions.py

低级http相关异常。

4 aiohttp.tcp_helpers

tcp_helpers, fullname=aiohttp.tcp_helpers, file=aiohttp\tcp_helpers.py

帮助器方法来优化TCP连接

5 aiohttp.base_protocol

base_protocol, fullname=aiohttp.base_protocol, file=aiohttp\base_protocol.py

6 aiohttp.log

log, fullname=aiohttp.log, file=aiohttp\log.py

7 aiohttp._helpers

_helpers, fullname=aiohttp._helpers, file=aiohttp_helpers.cp37-win_amd64.pyd

8 aiohttp.helpers

helpers, fullname=aiohttp.helpers, file=aiohttp\helpers.py

各种辅助函数

9 aiohttp.abc

abc, fullname=aiohttp.abc, file=aiohttp\abc.py

10 aiohttp._http_writer

_http_writer, fullname=aiohttp._http_writer, file=aiohttp_http_writer.cp37-win_amd64.pyd

11 aiohttp.http_writer

http_writer, fullname=aiohttp.http_writer, file=aiohttp\http_writer.py

Http相关的解析器和协议。

12 aiohttp.streams

streams, fullname=aiohttp.streams, file=aiohttp\streams.py

13 aiohttp._http_parser

_http_parser, fullname=aiohttp._http_parser, file=aiohttp_http_parser.cp37-win_amd64.pyd

14 aiohttp.http_parser

http_parser, fullname=aiohttp.http_parser, file=aiohttp\http_parser.py

15 aiohttp._websocket

_websocket, fullname=aiohttp._websocket, file=aiohttp_websocket.cp37-win_amd64.pyd

16 aiohttp.http_websocket

http_websocket, fullname=aiohttp.http_websocket, file=aiohttp\http_websocket.py

WebSocket协议版本13和8。

17 aiohttp.http

http, fullname=aiohttp.http, file=aiohttp\http.py

18 aiohttp.payload

payload, fullname=aiohttp.payload, file=aiohttp\payload.py

19 aiohttp.client_exceptions

client_exceptions, fullname=aiohttp.client_exceptions, file=aiohttp\client_exceptions.py

HTTP相关错误。

20 aiohttp.multipart

multipart, fullname=aiohttp.multipart, file=aiohttp\multipart.py

21 aiohttp.formdata

formdata, fullname=aiohttp.formdata, file=aiohttp\formdata.py

22 aiohttp.client_reqrep

client_reqrep, fullname=aiohttp.client_reqrep, file=aiohttp\client_reqrep.py

23 aiohttp.client_ws

client_ws, fullname=aiohttp.client_ws, file=aiohttp\client_ws.py

asyncio的WebSocket客户端。

24 aiohttp.client_proto

client_proto, fullname=aiohttp.client_proto, file=aiohttp\client_proto.py

25 aiohttp.locks

locks, fullname=aiohttp.locks, file=aiohttp\locks.py

26 aiohttp.resolver

resolver, fullname=aiohttp.resolver, file=aiohttp\resolver.py

27 aiohttp.connector

connector, fullname=aiohttp.connector, file=aiohttp\connector.py

28 aiohttp.cookiejar

cookiejar, fullname=aiohttp.cookiejar, file=aiohttp\cookiejar.py

29 aiohttp._frozenlist

_frozenlist, fullname=aiohttp._frozenlist, file=aiohttp_frozenlist.cp37-win_amd64.pyd

30 aiohttp.frozenlist

frozenlist, fullname=aiohttp.frozenlist, file=aiohttp\frozenlist.py

31 aiohttp.signals

signals, fullname=aiohttp.signals, file=aiohttp\signals.py

32 aiohttp.tracing

tracing, fullname=aiohttp.tracing, file=aiohttp\tracing.py

33 aiohttp.client

client, fullname=aiohttp.client, file=aiohttp\client.py

asyncio的HTTP客户端。

34 aiohttp.payload_streamer

payload_streamer, fullname=aiohttp.payload_streamer, file=aiohttp\payload_streamer.py

作为数据提供者的协同程序的有效负载实现。作为一个简单的例子,您可以从文件上传数据:@aiohttp.streamerasync def file_sender(writer, file_name=None):with open(file_name, 'rb') as f:chunk = f.read(2**16)while chunk:await writer.write(chunk)chunk = f.read(2**16)
然后你可以象这样使用 `file_sender`:async with session.post('http://httpbin.org/post', data=file_sender(file_name='huge_file')) as resp:print(await resp.text())
注意: 协程必须接受'writer'作为第一个参数

函数

35 request

request(method: str, url: Union[str, yarl.URL], *, params: Union[Mapping[str, str], NoneType] = None, data: Any = None, json: Any = None, headers: Union[Mapping[Union[str, multidict._multidict.istr], str], multidict._multidict.CIMultiDict, multidict._multidict.CIMultiDictProxy, NoneType] = None, skip_auto_headers: Union[Iterable[str], NoneType] = None, auth: Union[aiohttp.helpers.BasicAuth, NoneType] = None, allow_redirects: bool = True, max_redirects: int = 10, compress: Union[str, NoneType] = None, chunked: Union[bool, NoneType] = None, expect100: bool = False, raise_for_status: Union[bool, NoneType] = None, read_until_eof: bool = True, proxy: Union[str, yarl.URL, NoneType] = None, proxy_auth: Union[aiohttp.helpers.BasicAuth, NoneType] = None, timeout: Union[aiohttp.client.ClientTimeout, object] = <object object at 0x000001D0B1164FA0>, cookies: Union[Mapping[str, Union[str, ForwardRef(‘BaseCookie[str]’), ForwardRef(‘Morsel[Any]’)]], Iterable[Tuple[str, Union[str, ForwardRef(‘BaseCookie[str]’), ForwardRef(‘Morsel[Any]’)]]], ForwardRef(‘BaseCookie[str]’), NoneType] = None, version: aiohttp.http_writer.HttpVersion = HttpVersion(major=1, minor=1), connector: Union[aiohttp.connector.BaseConnector, NoneType] = None, read_bufsize: Union[int, NoneType] = None, loop: Union[asyncio.events.AbstractEventLoop, NoneType] = None) -> aiohttp.client._SessionRequestContextManager
request(method: str, url: Union[str, yarl.URL], *, params: Union[Mapping[str, str], NoneType] = None, data: Any = None, json: Any = None, headers: Union[Mapping[Union[str, multidict._multidict.istr], str], multidict._multidict.CIMultiDict, multidict._multidict.CIMultiDictProxy, NoneType] = None, skip_auto_headers: Union[Iterable[str], NoneType] = None, auth: Union[aiohttp.helpers.BasicAuth, NoneType] = None, allow_redirects: bool = True, max_redirects: int = 10, compress: Union[str, NoneType] = None, chunked: Union[bool, NoneType] = None, expect100: bool = False, raise_for_status: Union[bool, NoneType] = None, read_until_eof: bool = True, proxy: Union[str, yarl.URL, NoneType] = None, proxy_auth: Union[aiohttp.helpers.BasicAuth, NoneType] = None, timeout: Union[aiohttp.client.ClientTimeout, object] = <object object at 0x000001D0B1164FA0>, cookies: Union[Mapping[str, Union[str, ForwardRef(‘BaseCookie[str]’), ForwardRef(‘Morsel[Any]’)]], Iterable[Tuple[str, Union[str, ForwardRef(‘BaseCookie[str]’), ForwardRef(‘Morsel[Any]’)]]], ForwardRef(‘BaseCookie[str]’), NoneType] = None, version: aiohttp.http_writer.HttpVersion = HttpVersion(major=1, minor=1), connector: Union[aiohttp.connector.BaseConnector, NoneType] = None, read_bufsize: Union[int, NoneType] = None, loop: Union[asyncio.events.AbstractEventLoop, NoneType] = None) -> aiohttp.client._SessionRequestContextManager,
module=aiohttp.client,
line:1179 at site-packages\aiohttp\client.py

构造并发送请求。返回响应对象。method- HTTP方法url - 请求urlparams 参数 - (可选)字典或查询字符串的字节发送新的请求data 数据——(可选)字典,字节,或类似文件的对象发送json ——(可选)任何json兼容的python对象headers头(可选)——(可选)随请求发送的HTTP头信息的字典cookies ——(可选)Dict对象发送请求auth——(可选)命名元组 BasicAuth,代表 HTTP Basic Authauth - aiohttp.helpers.BasicAuthallow_redirects 允许重定向-(可选)如果设置为False,则不允许重定向。version版本-请求HTTP版本。compress -如果请求必须使用deflate编码进行压缩,则设置为True。chunked -为分块传输编码设置块大小。expect100 -期望从服务器得到100-continue响应。connector - 支持连接池的BaseConnector子类实例。read_until_eof -如果响应没有Content-Length报头,则读取响应直到eof。loop -可选的事件循环。timeout -可选的ClientTimeout设置结构,默认总超时为5分钟。用法:>>> import aiohttp>>> resp = await aiohttp.request('GET', 'http://python.org/')>>> resp<ClientResponse(python.org/) [200]>>>> data = await resp.read()

36 content_disposition_filename(params: Mapping[str, str], name: str = ‘filename’) -> Union[str, NoneType]

content_disposition_filename(params: Mapping[str, str], name: str = ‘filename’) -> Union[str, NoneType], module=aiohttp.multipart, line:170 at site-packages\aiohttp\multipart.py

37 parse_content_disposition(header: Union[str, NoneType]) -> Tuple[Union[str, NoneType], Dict[str, str]]

parse_content_disposition(header: Union[str, NoneType]) -> Tuple[Union[str, NoneType], Dict[str, str]], module=aiohttp.multipart, line:71 at site-packages\aiohttp\multipart.py

38 get_payload(data: Any, *args: Any, **kwargs: Any) -> ‘Payload’

get_payload(data: Any, *args: Any, **kwargs: Any) -> ‘Payload’, module=aiohttp.payload, line:72 at site-packages\aiohttp\payload.py

39 aiohttp.connector.BaseConnector

BaseConnector, aiohttp.connector.BaseConnector, module=aiohttp.connector, line:187 at site-packages\aiohttp\connector.py

基连接器类。keepalive_timeout - (可选)keep-alive超时。force_close - 设置为True强制关闭,并在每个请求后(以及重定向之间)重新连接。limit -同时连接的总数。limit_per_host - 限制每台主机-同时连接到一台主机的数量。enable_cleanup_closed -启用清理已关闭的ssl传输。默认为关闭。loop -可选的事件循环。

property

1 closed=<property object at 0x000001D0B1381138> kind:property type:property class:<class ‘aiohttp.connector.BaseConnector’>
2 force_close=<property object at 0x000001D0B137ED68> kind:property type:property class:<class ‘aiohttp.connector.BaseConnector’>
3 limit=<property object at 0x000001D0B137EE08> kind:property type:property class:<class ‘aiohttp.connector.BaseConnector’>
4 limit_per_host=<property object at 0x000001D0B137EEA8> kind:property type:property class:<class ‘aiohttp.connector.BaseConnector’>

method

5 close(self) -> Awaitable[None]:

kind=method class=BaseConnector objtype=function line:402 at …\lib\site-packages\aiohttp\connector.py

关闭所有打开的传输。

6 connect()

kind=method class=BaseConnector objtype=function

从池中获取或创建新连接。

40 aiohttp.client_exceptions.ClientConnectionError

ClientConnectionError, aiohttp.client_exceptions.ClientConnectionError, module=aiohttp.client_exceptions, line:144 at site-packages\aiohttp\client_exceptions.py

客户端套接字错误的基类。

41 aiohttp.client_exceptions.ClientConnectorCertificateError

ClientConnectorCertificateError, aiohttp.client_exceptions.ClientConnectorCertificateError, module=aiohttp.client_exceptions, line:286 at site-packages\aiohttp\client_exceptions.py

响应证书错误。

property

1 certificate_error=<property object at 0x000001D0B12FC1D8> kind:property type:property class:<class ‘aiohttp.client_exceptions.ClientConnectorCertificateError’>
2 host=<property object at 0x000001D0B12FC278> kind:property type:property class:<class ‘aiohttp.client_exceptions.ClientConnectorCertificateError’>
3 port=<property object at 0x000001D0B12FC318> kind:property type:property class:<class ‘aiohttp.client_exceptions.ClientConnectorCertificateError’>
4 ssl=<property object at 0x000001D0B12FC3B8> kind:property type:property class:<class ‘aiohttp.client_exceptions.ClientConnectorCertificateError’>

42 aiohttp.client_exceptions.ClientConnectorError

ClientConnectorError, aiohttp.client_exceptions.ClientConnectorError, module=aiohttp.client_exceptions, line:152 at site-packages\aiohttp\client_exceptions.py

客户端连接器错误。如果无法建立与代理的连接,则在:class:`aiohttp.connector.TCPConnector`中引发。

property

1 host=<property object at 0x000001D0B12F73B8> kind:property type:property class:<class ‘aiohttp.client_exceptions.ClientConnectorError’>
2 os_error=<property object at 0x000001D0B12F7318> kind:property type:property class:<class ‘aiohttp.client_exceptions.ClientConnectorError’>
3 port=<property object at 0x000001D0B12F7458> kind:property type:property class:<class ‘aiohttp.client_exceptions.ClientConnectorError’>
4 ssl=<property object at 0x000001D0B12F7818> kind:property type:property class:<class ‘aiohttp.client_exceptions.ClientConnectorError’>

43 aiohttp.client_exceptions.ClientConnectorSSLError

ClientConnectorSSLError, aiohttp.client_exceptions.ClientConnectorSSLError, module=aiohttp.client_exceptions, line:282 at site-packages\aiohttp\client_exceptions.py

响应ssl错误。

44 aiohttp.client_exceptions.ClientError

ClientError, aiohttp.client_exceptions.ClientError, module=aiohttp.client_exceptions, line:44 at site-packages\aiohttp\client_exceptions.py

客户端连接错误的基类。

45 aiohttp.client_exceptions.ClientHttpProxyError

ClientHttpProxyError, aiohttp.client_exceptions.ClientHttpProxyError, module=aiohttp.client_exceptions, line:131 at site-packages\aiohttp\client_exceptions.py

HTTP代理错误。
如果代理在“CONNECT”请求上响应的状态不是“200 OK”,则在:class:`aiohttp.connector.TCPConnector中引发。

46 aiohttp.client_exceptions.ClientOSError

ClientOSError, aiohttp.client_exceptions.ClientOSError, module=aiohttp.client_exceptions, line:148 at site-packages\aiohttp\client_exceptions.py

OSError错误。

47 aiohttp.client_exceptions.ClientPayloadError

ClientPayloadError, aiohttp.client_exceptions.ClientPayloadError, module=aiohttp.client_exceptions, line:233 at site-packages\aiohttp\client_exceptions.py

响应有效载荷错误。

48 aiohttp.client_exceptions.ClientProxyConnectionError

ClientProxyConnectionError, aiohttp.client_exceptions.ClientProxyConnectionError, module=aiohttp.client_exceptions, line:190 at site-packages\aiohttp\client_exceptions.py

代理连接错误。如果无法建立与代理的连接,则在:class:`aiohttp.connector.TCPConnector`中引发。

49 aiohttp.client_reqrep.ClientRequest

ClientRequest, aiohttp.client_reqrep.ClientRequest, module=aiohttp.client_reqrep, line:220 at site-packages\aiohttp\client_reqrep.py

data

1 ALL_METHODS={‘TRACE’, ‘GET’, ‘PATCH’, ‘HEAD’, ‘POST’, ‘DELETE’, ‘PUT’, ‘OPTIONS’} kind:data type:set class:<class ‘aiohttp.client_reqrep.ClientRequest’>
2 DEFAULT_HEADERS={‘Accept’: ‘/’, ‘Accept-Encoding’: ‘gzip, deflate’} kind:data type:dict class:<class ‘aiohttp.client_reqrep.ClientRequest’>
3 GET_METHODS={‘OPTIONS’, ‘GET’, ‘TRACE’, ‘HEAD’} kind:data type:set class:<class ‘aiohttp.client_reqrep.ClientRequest’>
4 POST_METHODS={‘PUT’, ‘PATCH’, ‘POST’} kind:data type:set class:<class ‘aiohttp.client_reqrep.ClientRequest’>
5 auth=None kind:data type:NoneType class:<class ‘aiohttp.client_reqrep.ClientRequest’>
6 body=b’’ kind:data type:bytes class:<class ‘aiohttp.client_reqrep.ClientRequest’>
7 response=None kind:data type:NoneType class:<class ‘aiohttp.client_reqrep.ClientRequest’>

property

8 connection_key=<property object at 0x000001D0B135CD18> kind:property type:property class:<class ‘aiohttp.client_reqrep.ClientRequest’>
9 host=<property object at 0x000001D0B135CD68> kind:property type:property class:<class ‘aiohttp.client_reqrep.ClientRequest’>
10 port=<property object at 0x000001D0B135CDB8> kind:property type:property class:<class ‘aiohttp.client_reqrep.ClientRequest’>
11 request_info=<property object at 0x000001D0B135CE08> kind:property type:property class:<class ‘aiohttp.client_reqrep.ClientRequest’>
12 ssl=<property object at 0x000001D0B135CCC8> kind:property type:property class:<class ‘aiohttp.client_reqrep.ClientRequest’>

method

13 close(self) -> None:

kind=method class=ClientRequest objtype=function line:953 at …\lib\site-packages\aiohttp\client_reqrep.py

14 is_ssl(self) -> bool:

kind=method class=ClientRequest objtype=function line:321 at …\lib\site-packages\aiohttp\client_reqrep.py

15 keep_alive(self) -> bool:

kind=method class=ClientRequest objtype=function line:558 at …\lib\site-packages\aiohttp\client_reqrep.py

16 send()

kind=method class=ClientRequest objtype=function

17 terminate(self) -> None:

kind=method class=ClientRequest objtype=function line:694 at …\lib\site-packages\aiohttp\client_reqrep.py

18 update_auth(self, auth: Optional[BasicAuth]) -> None:

kind=method class=ClientRequest objtype=function line:489 at …\lib\site-packages\aiohttp\client_reqrep.py

设置基本授权。

19 update_auto_headers(self, skip_auto_headers: Iterable[str]) -> None:

kind=method class=ClientRequest objtype=function line:411 at …\lib\site-packages\aiohttp\client_reqrep.py

20 update_body_from_data(self, body: Any) -> None:

kind=method class=ClientRequest objtype=function line:501 at …\lib\site-packages\aiohttp\client_reqrep.py

21 update_content_encoding(self, data: Any) -> None:

kind=method class=ClientRequest objtype=function line:450 at …\lib\site-packages\aiohttp\client_reqrep.py

设置请求内容编码。

22 update_cookies(self, cookies: Optional[LooseCookies]) -> None:

kind=method class=ClientRequest objtype=function line:425 at …\lib\site-packages\aiohttp\client_reqrep.py

更新请求cookie头。

23 update_expect_continue(self, expect: bool = False) -> None:

kind=method class=ClientRequest objtype=function line:535 at …\lib\site-packages\aiohttp\client_reqrep.py

24 update_headers(self, headers: Optional[LooseHeaders]) -> None:

kind=method class=ClientRequest objtype=function line:388 at …\lib\site-packages\aiohttp\client_reqrep.py

更新请求标头。

25 update_host(self, url: URL) -> None:

kind=method class=ClientRequest objtype=function line:362 at …\lib\site-packages\aiohttp\client_reqrep.py

更新目标主机、端口和连接类型(ssl)。

26 update_proxy(

kind=method class=ClientRequest objtype=function line:544 at …\lib\site-packages\aiohttp\client_reqrep.py

27 update_transfer_encoding(self) -> None:

kind=method class=ClientRequest objtype=function line:467 at …\lib\site-packages\aiohttp\client_reqrep.py

分析传输编码头。

28 update_version(self, version: Union[http.HttpVersion, str]) -> None:

kind=method class=ClientRequest objtype=function line:373 at …\lib\site-packages\aiohttp\client_reqrep.py

将请求版本转换为双元素元组。解析HTTP版本'1.1' => (1, 1)

29 write_bytes()

kind=method class=ClientRequest objtype=function

支持产生bytes对象的协程。

50 aiohttp.client_reqrep.ClientResponse

ClientResponse, aiohttp.client_reqrep.ClientResponse, module=aiohttp.client_reqrep, line:705 at site-packages\aiohttp\client_reqrep.py

data

1 content=None kind:data type:NoneType class:<class ‘aiohttp.client_reqrep.ClientResponse’>
2 content_disposition=<aiohttp._helpers.reify object at 0x000001D0B135B188> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
3 headers=<aiohttp._helpers.reify object at 0x000001D0B1356F48> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
4 history=<aiohttp._helpers.reify object at 0x000001D0B135B408> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
5 host=<aiohttp._helpers.reify object at 0x000001D0B1356F08> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
6 links=<aiohttp._helpers.reify object at 0x000001D0B135B488> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
7 raw_headers=<aiohttp._helpers.reify object at 0x000001D0B1356F88> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
8 real_url=<aiohttp._helpers.reify object at 0x000001D0B1356EC8> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
9 reason=None kind:data type:NoneType class:<class ‘aiohttp.client_reqrep.ClientResponse’>
10 request_info=<aiohttp._helpers.reify object at 0x000001D0B1356FC8> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
11 status=None kind:data type:NoneType class:<class ‘aiohttp.client_reqrep.ClientResponse’>
12 url=<aiohttp._helpers.reify object at 0x000001D0B1356E48> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
13 url_obj=<aiohttp._helpers.reify object at 0x000001D0B1356E88> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
14 version=None kind:data type:NoneType class:<class ‘aiohttp.client_reqrep.ClientResponse’>

property

15 closed=<property object at 0x000001D0B135DBD8> kind:property type:property class:<class ‘aiohttp.client_reqrep.ClientResponse’>
16 connection=<property object at 0x000001D0B135D958> kind:property type:property class:<class ‘aiohttp.client_reqrep.ClientResponse’>
17 ok=<property object at 0x000001D0B135DD18> kind:property type:property class:<class ‘aiohttp.client_reqrep.ClientResponse’>

method

18 close(self) -> None:

kind=method class=ClientResponse objtype=function line:953 at …\lib\site-packages\aiohttp\client_reqrep.py

19 get_encoding(self) -> str:

kind=method class=ClientResponse objtype=function line:1045 at …\lib\site-packages\aiohttp\client_reqrep.py

20 json()

kind=method class=ClientResponse objtype=function

读取和解码JSON响应。

21 raise_for_status(self) -> None:

kind=method class=ClientResponse objtype=function line:995 at …\lib\site-packages\aiohttp\client_reqrep.py

22 read()

kind=method class=ClientResponse objtype=function

读取响应负载。

23 release(self) -> Any:

kind=method class=ClientResponse objtype=function line:968 at …\lib\site-packages\aiohttp\client_reqrep.py

24 start()

kind=method class=ClientResponse objtype=function

启动响应处理。

25 text()

kind=method class=ClientResponse objtype=function

读取响应有效载荷并解码。

26 wait_for_close()

kind=method class=ClientResponse objtype=function

51 aiohttp.client_exceptions.ClientResponseError

ClientResponseError, aiohttp.client_exceptions.ClientResponseError, module=aiohttp.client_exceptions, line:48 at site-packages\aiohttp\client_exceptions.py

读取响应时连接错误。request_info: RequestInfo的实例

property

1 code=<property object at 0x000001D0B12F1C78> kind:property type:property class:<class ‘aiohttp.client_exceptions.ClientResponseError’>

52 aiohttp.client.ClientSession

ClientSession, aiohttp.client.ClientSession, module=aiohttp.client, line:163 at site-packages\aiohttp\client.py

用于发出HTTP请求的一级接口。

data

1 ATTRS=frozenset({‘_requote_redirect_url’, ‘_connector’, ‘_request_class’, ‘_version’, ‘_skip_auto_headers’, ‘_loop’, ‘_cookie_jar’, ‘_source_traceback’, ‘_json_serialize’, ‘_response_class’, ‘_auto_decompress’, ‘_raise_for_status’, ‘_connector_owner’, ‘_ws_response_class’, ‘_trace_configs’, ‘_default_auth’, ‘_read_bufsize’, ‘_trust_env’, ‘requote_redirect_url’, ‘_default_headers’, ‘_timeout’}) kind:data type:frozenset class:<class ‘aiohttp.client.ClientSession’>

property

2 auth=<property object at 0x000001D0B1C09138> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
3 auto_decompress=<property object at 0x000001D0B1C044A8> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
4 closed=<property object at 0x000001D0B1BB7EA8> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
5 connector=<property object at 0x000001D0B1365B38> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
6 connector_owner=<property object at 0x000001D0B1BF8F98> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
7 cookie_jar=<property object at 0x000001D0B134A688> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
8 headers=<property object at 0x000001D0B1C09D18> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
9 json_serialize=<property object at 0x000001D0B1C01868> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
10 loop=<property object at 0x000001D0B1C12818> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
11 raise_for_status=<property object at 0x000001D0B1BE59A8> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
12 requote_redirect_url=<property object at 0x000001D0B1C127C8> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
13 skip_auto_headers=<property object at 0x000001D0B1C09188> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
14 timeout=<property object at 0x000001D0B1C0E908> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
15 trace_configs=<property object at 0x000001D0B1C045E8> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
16 trust_env=<property object at 0x000001D0B1C04548> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
17 version=<property object at 0x000001D0B1C12868> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>

method

18 close(self) -> None:

kind=method class=ClientSession objtype=function line:1106 at …\lib\site-packages\aiohttp\client.py

关闭底层连接器。释放所有已获得的资源。

19 delete(self, url: StrOrURL, **kwargs: Any) -> “_RequestContextManager”:

kind=method class=ClientSession objtype=function line:943 at …\lib\site-packages\aiohttp\client.py

执行HTTP DELETE请求。

20 detach(self) -> None:

kind=method class=ClientSession objtype=function line:1062 at …\lib\site-packages\aiohttp\client.py

从会话中分离连接器而不关闭前者。会话将切换到关闭状态。

21 get(self, url: StrOrURL, *, allow_redirects: bool = True, **kwargs: Any) -> “_RequestContextManager”

kind=method class=ClientSession objtype=function line:891 at …\lib\site-packages\aiohttp\client.py

执行HTTP GET请求。

22 head(

kind=method class=ClientSession objtype=function line:909 at …\lib\site-packages\aiohttp\client.py

执行HTTP HEAD请求。

23 options(

kind=method class=ClientSession objtype=function line:899 at …\lib\site-packages\aiohttp\client.py

执行HTTP OPTIONS请求。

24 patch(

kind=method class=ClientSession objtype=function line:935 at …\lib\site-packages\aiohttp\client.py

执行HTTP PATCH请求。

25 post(

kind=method class=ClientSession objtype=function line:919 at …\lib\site-packages\aiohttp\client.py

执行HTTP POST请求。

26 put(

kind=method class=ClientSession objtype=function line:927 at …\lib\site-packages\aiohttp\client.py

执行HTTP PUT请求。

27 request(

kind=method class=ClientSession objtype=function line:339 at …\lib\site-packages\aiohttp\client.py

执行HTTP请求。

28 ws_connect(

kind=method class=ClientSession objtype=function line:651 at …\lib\site-packages\aiohttp\client.py

启动websocket连接。

53 aiohttp.client_exceptions.ClientSSLError

ClientSSLError, aiohttp.client_exceptions.ClientSSLError, module=aiohttp.client_exceptions, line:258 at site-packages\aiohttp\client_exceptions.py

ssl.*Errors 基本错误。

54 aiohttp.client.ClientTimeout

ClientTimeout, aiohttp.client.ClientTimeout, module=aiohttp.client, line:137 at site-packages\aiohttp\client.py

data

1 connect=<member ‘connect’ of ‘ClientTimeout’ objects> kind:data type:member_descriptor class:<class ‘aiohttp.client.ClientTimeout’>
2 sock_connect=<member ‘sock_connect’ of ‘ClientTimeout’ objects> kind:data type:member_descriptor class:<class ‘aiohttp.client.ClientTimeout’>
3 sock_read=<member ‘sock_read’ of ‘ClientTimeout’ objects> kind:data type:member_descriptor class:<class ‘aiohttp.client.ClientTimeout’>
4 total=<member ‘total’ of ‘ClientTimeout’ objects> kind:data type:member_descriptor class:<class ‘aiohttp.client.ClientTimeout’>

55 aiohttp.client_ws.ClientWebSocketResponse

ClientWebSocketResponse, aiohttp.client_ws.ClientWebSocketResponse, module=aiohttp.client_ws, line:28 at site-packages\aiohttp\client_ws.py

property

1 client_notakeover=<property object at 0x000001D0B1361F48> kind:property type:property class:<class ‘aiohttp.client_ws.ClientWebSocketResponse’>
2 close_code=<property object at 0x000001D0B1361D68> kind:property type:property class:<class ‘aiohttp.client_ws.ClientWebSocketResponse’>
3 closed=<property object at 0x000001D0B1361CC8> kind:property type:property class:<class ‘aiohttp.client_ws.ClientWebSocketResponse’>
4 compress=<property object at 0x000001D0B1361EA8> kind:property type:property class:<class ‘aiohttp.client_ws.ClientWebSocketResponse’>
5 protocol=<property object at 0x000001D0B1361E08> kind:property type:property class:<class ‘aiohttp.client_ws.ClientWebSocketResponse’>

method

6 close()

kind=method class=ClientWebSocketResponse objtype=function

7 exception(self) -> Optional[BaseException]:

kind=method class=ClientWebSocketResponse objtype=function line:138 at …\lib\site-packages\aiohttp\client_ws.py

8 get_extra_info(self, name: str, default: Any = None) -> Any:

kind=method class=ClientWebSocketResponse objtype=function line:128 at …\lib\site-packages\aiohttp\client_ws.py

来自连接传输的额外信息

9 ping()

kind=method class=ClientWebSocketResponse objtype=function

10 pong()

kind=method class=ClientWebSocketResponse objtype=function

11 receive()

kind=method class=ClientWebSocketResponse objtype=function

12 receive_bytes()

kind=method class=ClientWebSocketResponse objtype=function

13 receive_json()

kind=method class=ClientWebSocketResponse objtype=function

14 receive_str()

kind=method class=ClientWebSocketResponse objtype=function

15 send_bytes()

kind=method class=ClientWebSocketResponse objtype=function

16 send_json()

kind=method class=ClientWebSocketResponse objtype=function

17 send_str()

kind=method class=ClientWebSocketResponse objtype=function

56 aiohttp.client_exceptions.ContentTypeError

ContentTypeError, aiohttp.client_exceptions.ContentTypeError, module=aiohttp.client_exceptions, line:123 at site-packages\aiohttp\client_exceptions.py

找到的内容类型无效。

57 aiohttp.client_reqrep.Fingerprint

Fingerprint, aiohttp.client_reqrep.Fingerprint, module=aiohttp.client_reqrep, line:106 at site-packages\aiohttp\client_reqrep.py

data

1 HASHFUNC_BY_DIGESTLEN={16: , 20: , 32: … kind:data type:dict class:<class ‘aiohttp.client_reqrep.Fingerprint’>

property

2 fingerprint=<property object at 0x000001D0B134DA98> kind:property type:property class:<class ‘aiohttp.client_reqrep.Fingerprint’>

method

3 check(self, transport: asyncio.Transport) -> None:

kind=method class=Fingerprint objtype=function line:129 at …\lib\site-packages\aiohttp\client_reqrep.py

58 aiohttp.client_exceptions.InvalidURL

InvalidURL, aiohttp.client_exceptions.InvalidURL, module=aiohttp.client_exceptions, line:237 at site-packages\aiohttp\client_exceptions.py

无效的URL。用于抓取的URL格式不正确,例如不包含主机部分。

property

1 url=<property object at 0x000001D0B12F7E08> kind:property type:property class:<class ‘aiohttp.client_exceptions.InvalidURL’>

59 aiohttp.connector.NamedPipeConnector

NamedPipeConnector, aiohttp.connector.NamedPipeConnector, module=aiohttp.connector, line:1202 at site-packages\aiohttp\connector.py

命名管接头。
仅由proactor事件循环支持。[参见:](https://docs.python.org/3.7/library/asyncio-eventloop.html)path - Windows命名管道路径。keepalive_timeout -(可选)keepalive超时。force_close-设置为True强制关闭,并在每个请求后(以及重定向之间)重新连接。limit -同时连接的总数。limit_per_host - 限制每台主机-同时连接到一台主机的数量。loop -可选的事件循环。

property

1 path=<property object at 0x000001D0B1386868> kind:property type:property class:<class ‘aiohttp.connector.NamedPipeConnector’>

60 aiohttp.client_reqrep.RequestInfo

RequestInfo, aiohttp.client_reqrep.RequestInfo, module=aiohttp.client_reqrep, line:95 at site-packages\aiohttp\client_reqrep.py

data

1 headers=<member ‘headers’ of ‘RequestInfo’ objects> kind:data type:member_descriptor class:<class ‘aiohttp.client_reqrep.RequestInfo’>
2 method=<member ‘method’ of ‘RequestInfo’ objects> kind:data type:member_descriptor class:<class ‘aiohttp.client_reqrep.RequestInfo’>
3 real_url=<member ‘real_url’ of ‘RequestInfo’ objects> kind:data type:member_descriptor class:<class ‘aiohttp.client_reqrep.RequestInfo’>
4 url=<member ‘url’ of ‘RequestInfo’ objects> kind:data type:member_descriptor class:<class ‘aiohttp.client_reqrep.RequestInfo’>

method

5 real_url_default(self) -> URL:

kind=method class=RequestInfo objtype=function line:102 at …\lib\site-packages\aiohttp\client_reqrep.py

61 aiohttp.client_exceptions.ServerConnectionError

ServerConnectionError, aiohttp.client_exceptions.ServerConnectionError, module=aiohttp.client_exceptions, line:198 at site-packages\aiohttp\client_exceptions.py

服务器连接错误。

62 aiohttp.client_exceptions.ServerDisconnectedError

ServerDisconnectedError, aiohttp.client_exceptions.ServerDisconnectedError, module=aiohttp.client_exceptions, line:202 at site-packages\aiohttp\client_exceptions.py

服务器断开连接。

63 aiohttp.client_exceptions.ServerFingerprintMismatch

ServerFingerprintMismatch, aiohttp.client_exceptions.ServerFingerprintMismatch, module=aiohttp.client_exceptions, line:217 at site-packages\aiohttp\client_exceptions.py

SSL证书与期望的指纹不匹配。

64 aiohttp.client_exceptions.ServerTimeoutError

ServerTimeoutError, aiohttp.client_exceptions.ServerTimeoutError, module=aiohttp.client_exceptions, line:213 at site-packages\aiohttp\client_exceptions.py

服务器超时错误。

65 aiohttp.connector.TCPConnector

TCPConnector, aiohttp.connector.TCPConnector, module=aiohttp.connector, line:712 at site-packages\aiohttp\connector.py

TCP连接。verify_ssl -设置为“True”,检查ssl认证。fingerprint -传递DER格式的期望证书的二进制sha256摘要,以验证服务器提供的证书是否匹配。[参见](https://en.wikipedia.org/wiki/Transport_Layer_Security#Certificate_pinning)resolver -启用DNS查找并使用此解析器use_dns_cache -使用内存缓存进行DNS查找。ttl_dns_cache -缓存dns条目的最大秒数,永远为None。family - socket地址族local_addr -本地元组(主机,端口)绑定socketkeepalive_timeout -(可选)keepalive超时。force_close -设置为True强制关闭,并在每个请求后(以及重定向之间)重新连接。limit -同时连接的总数。limit_per_host - -同时连接到一台主机的数量。enable_cleanup_closed - 启用清理已关闭的ssl传输。默认为关闭。loop - 可选的事件循环。

property

1 family=<property object at 0x000001D0B1381D18> kind:property type:property class:<class ‘aiohttp.connector.TCPConnector’>
2 use_dns_cache=<property object at 0x000001D0B1381DB8> kind:property type:property class:<class ‘aiohttp.connector.TCPConnector’>

method

3 clear_dns_cache(

kind=method class=TCPConnector objtype=function line:795 at …\lib\site-packages\aiohttp\connector.py

删除指定的主机/端口或清除所有dns本地缓存。

4 close(self) -> Awaitable[None]:

kind=method class=TCPConnector objtype=function line:778 at …\lib\site-packages\aiohttp\connector.py

关闭所有正在进行的DNS调用。

66 aiohttp.client_exceptions.TooManyRedirects

TooManyRedirects, aiohttp.client_exceptions.TooManyRedirects, module=aiohttp.client_exceptions, line:140 at site-packages\aiohttp\client_exceptions.py

客户被重定向太多次。

67 aiohttp.connector.UnixConnector

UnixConnector, aiohttp.connector.UnixConnector, module=aiohttp.connector, line:1153 at site-packages\aiohttp\connector.py

Unix套接字连接器。path - Unix套接字路径。keepalive_timeout -(可选)keepalive超时。force_close -设置为True强制关闭,并在每个请求后(以及重定向之间)重新连接。limit -同时连接的总数。limit_per_host - 限制每台主机-同时连接到一台主机的数量。loop -可选的事件循环。

property

1 path=<property object at 0x000001D0B1386688> kind:property type:property class:<class ‘aiohttp.connector.UnixConnector’>

68 aiohttp.client_exceptions.WSServerHandshakeError

WSServerHandshakeError, aiohttp.client_exceptions.WSServerHandshakeError, module=aiohttp.client_exceptions, line:127 at site-packages\aiohttp\client_exceptions.py

Websocket服务器握手错误。

69 aiohttp.cookiejar.CookieJar

CookieJar, aiohttp.cookiejar.CookieJar, module=aiohttp.cookiejar, line:34 at site-packages\aiohttp\cookiejar.py

遵循RFC 6265实现cookie存储。

data

1 DATE_DAY_OF_MONTH_RE=re.compile(‘(\d{1,2})’) kind:data type:Pattern class:<class ‘aiohttp.cookiejar.CookieJar’>
2 DATE_HMS_TIME_RE=re.compile(‘(\d{1,2})😦\d{1,2})😦\d{1,2})’) kind:data type:Pattern class:<class ‘aiohttp.cookiejar.CookieJar’>
3 DATE_MONTH_RE=re.compile(‘(jan)|(feb)|(mar)|(apr)|(may)|(jun)|(jul)|(aug)|(sep)|(oct)|(nov)|(dec)’, re.IGNORECASE) kind:data type:Pattern class:<class ‘aiohttp.cookiejar.CookieJar’>
4 DATE_TOKENS_RE=re.compile(‘[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]*(?P[\x00-\x08\x0A-\x1F\d:a-zA-Z\x7F-\xFF]+)’) kind:data type:Pattern class:<class ‘aiohttp.cookiejar.CookieJar’>
5 DATE_YEAR_RE=re.compile(‘(\d{2,4})’) kind:data type:Pattern class:<class ‘aiohttp.cookiejar.CookieJar’>
6 MAX_32BIT_TIME=2038-01-19 03:14:07 kind:data type:datetime class:<class ‘aiohttp.cookiejar.CookieJar’>
7 MAX_TIME=9999-12-31 23:59:59.999999+00:00 kind:data type:datetime class:<class ‘aiohttp.cookiejar.CookieJar’>

method

8 clear(self) -> None:

kind=method class=CookieJar objtype=function line:90 at …\lib\site-packages\aiohttp\cookiejar.py

9 filter_cookies(

kind=method class=CookieJar objtype=function line:212 at …\lib\site-packages\aiohttp\cookiejar.py

返回按属性过滤的这个jar的cookie。

10 load(self, file_path: PathLike) -> None:

kind=method class=CookieJar objtype=function line:85 at …\lib\site-packages\aiohttp\cookiejar.py

11 save(self, file_path: PathLike) -> None:

kind=method class=CookieJar objtype=function line:80 at …\lib\site-packages\aiohttp\cookiejar.py

12 update_cookies(self, cookies: LooseCookies, response_url: URL = URL()) -> None:

kind=method class=CookieJar objtype=function line:135 at …\lib\site-packages\aiohttp\cookiejar.py

更新cookies。

70 aiohttp.cookiejar.DummyCookieJar

DummyCookieJar, aiohttp.cookiejar.DummyCookieJar, module=aiohttp.cookiejar, line:358 at site-packages\aiohttp\cookiejar.py

实现一个虚拟cookie存储。当不需要cookie处理时,它可以与ClientSession一起使用。

method

1 clear(self) -> None:

kind=method class=DummyCookieJar objtype=function line:375 at …\lib\site-packages\aiohttp\cookiejar.py

2 filter_cookies(self, request_url: URL) -> “BaseCookie[str]”:

kind=method class=DummyCookieJar objtype=function line:381 at …\lib\site-packages\aiohttp\cookiejar.py

3 update_cookies(self, cookies: LooseCookies, response_url: URL = URL()) -> None:

kind=method class=DummyCookieJar objtype=function line:378 at …\lib\site-packages\aiohttp\cookiejar.py

71 aiohttp.formdata.FormData

FormData, aiohttp.formdata.FormData, module=aiohttp.formdata, line:14 at site-packages\aiohttp\formdata.py

用于生成多部件/表单-数据和应用程序/x-www-form-urlencoded 主体的辅助类。

property

1 is_multipart=<property object at 0x000001D0B1343D18> kind:property type:property class:<class ‘aiohttp.formdata.FormData’>

method

2 add_field(

kind=method class=FormData objtype=function line:41 at …\lib\site-packages\aiohttp\formdata.py

3 add_fields(self, *fields: Any) -> None:

kind=method class=FormData objtype=function line:87 at …\lib\site-packages\aiohttp\formdata.py

72 aiohttp.helpers.BasicAuth

BasicAuth, aiohttp.helpers.BasicAuth, module=aiohttp.helpers, line:130 at site-packages\aiohttp\helpers.py

Http基本身份验证助手。

method

1 encode(self) -> str:

kind=method class=BasicAuth objtype=function line:185 at …\lib\site-packages\aiohttp\helpers.py

编码凭证。

class method

2 decode(cls, auth_header: str, encoding: str = “latin1”) -> “BasicAuth”:

kind=class method class=BasicAuth objtype=classmethod line:148 at …\lib\site-packages\aiohttp\helpers.py

将一个函数转换为一个类方法。

3 from_url(cls, url: URL, *, encoding: str = “latin1”) -> Optional[“BasicAuth”]:

kind=class method class=BasicAuth objtype=classmethod line:177 at …\lib\site-packages\aiohttp\helpers.py

将一个函数转换为一个类方法。

73 aiohttp.helpers.ChainMapProxy

ChainMapProxy, aiohttp.helpers.ChainMapProxy, module=aiohttp.helpers, line:738 at site-packages\aiohttp\helpers.py

method

1 get(self, key: str, default: Any = None) -> Any:

kind=method class=ChainMapProxy objtype=function line:758 at …\lib\site-packages\aiohttp\helpers.py

74 aiohttp.http_writer.HttpVersion

HttpVersion, aiohttp.http_writer.HttpVersion, module=aiohttp.http_writer, line:-1 at site-packages\aiohttp\http_writer.py

HttpVersion(major, minor)

property

1 major=<property object at 0x000001D0B126D778> kind:property type:property class:<class ‘aiohttp.http_writer.HttpVersion’>
2 minor=<property object at 0x000001D0B126D7C8> kind:property type:property class:<class ‘aiohttp.http_writer.HttpVersion’>

75 aiohttp.http_websocket.WebSocketError

WebSocketError, aiohttp.http_websocket.WebSocketError, module=aiohttp.http_websocket, line:102 at site-packages\aiohttp\http_websocket.py

WebSocket协议解析器错误。

76 WSCloseCode

WSCloseCode, WSCloseCode, module=aiohttp.http_websocket, line:31 at site-packages\aiohttp\http_websocket.py

枚举。

data

1 GOING_AWAY=1001 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
2 INTERNAL_ERROR=1011 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
3 INVALID_TEXT=1007 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
4 MANDATORY_EXTENSION=1010 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
5 MESSAGE_TOO_BIG=1009 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
6 OK=1000 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
7 POLICY_VIOLATION=1008 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
8 PROTOCOL_ERROR=1002 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
9 SERVICE_RESTART=1012 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
10 TRY_AGAIN_LATER=1013 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
11 UNSUPPORTED_DATA=1003 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>

77 aiohttp.http_websocket.WSMessage

WSMessage, aiohttp.http_websocket.WSMessage, module=aiohttp.http_websocket, line:89 at site-packages\aiohttp\http_websocket.py

method

1 json(self, *, loads: Callable[[Any], Any] = json.loads) -> Any:

kind=method class=WSMessage objtype=function line:90 at …\lib\site-packages\aiohttp\http_websocket.py

返回解析后的JSON数据。versionadded:: 0.22

78 WSMsgType

WSMsgType, WSMsgType, module=aiohttp.http_websocket, line:48 at site-packages\aiohttp\http_websocket.py

枚举。

data

1 BINARY=2 kind:data type:WSMsgType class:<enum ‘WSMsgType’>
2 CLOSE=8 kind:data type:WSMsgType class:<enum ‘WSMsgType’>
3 CLOSED=257 kind:data type:WSMsgType class:<enum ‘WSMsgType’>
4 CLOSING=256 kind:data type:WSMsgType class:<enum ‘WSMsgType’>
5 CONTINUATION=0 kind:data type:WSMsgType class:<enum ‘WSMsgType’>
6 ERROR=258 kind:data type:WSMsgType class:<enum ‘WSMsgType’>
7 PING=9 kind:data type:WSMsgType class:<enum ‘WSMsgType’>
8 PONG=10 kind:data type:WSMsgType class:<enum ‘WSMsgType’>
9 TEXT=1 kind:data type:WSMsgType class:<enum ‘WSMsgType’>

79 aiohttp.multipart.BadContentDispositionHeader

BadContentDispositionHeader, aiohttp.multipart.BadContentDispositionHeader, module=aiohttp.multipart, line:63 at site-packages\aiohttp\multipart.py

80 aiohttp.multipart.BadContentDispositionParam

BadContentDispositionParam, aiohttp.multipart.BadContentDispositionParam, module=aiohttp.multipart, line:67 at site-packages\aiohttp\multipart.py

81 aiohttp.multipart.BodyPartReader

BodyPartReader, aiohttp.multipart.BodyPartReader, module=aiohttp.multipart, line:248 at site-packages\aiohttp\multipart.py

多部分阅读器单一的主体部分。

data

1 chunk_size=8192 kind:data type:int class:<class ‘aiohttp.multipart.BodyPartReader’>
2 filename=<aiohttp._helpers.reify object at 0x000001D0B133C808> kind:data type:reify class:<class ‘aiohttp.multipart.BodyPartReader’>
3 name=<aiohttp._helpers.reify object at 0x000001D0B133C788> kind:data type:reify class:<class ‘aiohttp.multipart.BodyPartReader’>

method

4 at_eof(self) -> bool:

kind=method class=BodyPartReader objtype=function line:433 at …\lib\site-packages\aiohttp\multipart.py

如果到达边界返回True,否则返回False。

5 decode(self, data: bytes) -> bytes:

kind=method class=BodyPartReader objtype=function line:437 at …\lib\site-packages\aiohttp\multipart.py

根据指定的Content-Encoding或Content-Transfer-Encoding头值对数据进行解码。

6 form()

kind=method class=BodyPartReader objtype=function

类似于read(),但假设主体部分包含编码URL表单数据。

7 get_charset(self, default: str) -> str:

kind=method class=BodyPartReader objtype=function line:473 at …\lib\site-packages\aiohttp\multipart.py

从内容类型报头或默认值返回字符集参数。

8 json()

kind=method class=BodyPartReader objtype=function

类似于read(),但假设主体部分包含JSON数据。

9 next()

kind=method class=BodyPartReader objtype=function

10 read()

kind=method class=BodyPartReader objtype=function

读取主体部分数据。decode:对来自Content-Encoding报头的数据按编码方法进行解码。如果丢失数据,则保持不变。

11 read_chunk()

kind=method class=BodyPartReader objtype=function

读取指定大小的主体部分内容块。size: 块大小

12 readline()

kind=method class=BodyPartReader objtype=function

逐行读取主体部位。

13 release()

kind=method class=BodyPartReader objtype=function

与read()类似,但将所有数据读取到void中。

14 text()

kind=method class=BodyPartReader objtype=function

类似于read(),但假设主体部分包含文本数据。

82 aiohttp.multipart.MultipartReader

MultipartReader, aiohttp.multipart.MultipartReader, module=aiohttp.multipart, line:519 at site-packages\aiohttp\multipart.py

多部分体阅读器。

data

1 multipart_reader_cls=None kind:data type:NoneType class:<class ‘aiohttp.multipart.MultipartReader’>
2 part_reader_cls=<class ‘aiohttp.multipart.BodyPartReader’> kind:data type:type class:<class ‘aiohttp.multipart.MultipartReader’>
3 response_wrapper_cls=<class ‘aiohttp.multipart.MultipartResponseWrapper’> kind:data type:type class:<class ‘aiohttp.multipart.MultipartReader’>

method

4 at_eof(self) -> bool:

kind=method class=MultipartReader objtype=function line:568 at …\lib\site-packages\aiohttp\multipart.py

如果到达最终边界返回True,否则返回False。

5 fetch_next_part()

kind=method class=MultipartReader objtype=function

返回下一个主体部位读取器。

6 next()

kind=method class=MultipartReader objtype=function

发出下一个多部分主体部分。

7 release()

kind=method class=MultipartReader objtype=function

读取所有主体部位直到最后的边界。

class method

8 from_response(

kind=class method class=MultipartReader objtype=classmethod line:555 at …\lib\site-packages\aiohttp\multipart.py

将一个函数转换为一个类方法。

83 aiohttp.multipart.MultipartWriter

MultipartWriter, aiohttp.multipart.MultipartWriter, module=aiohttp.multipart, line:708 at site-packages\aiohttp\multipart.py

多部分主体写作。

property

1 boundary=<property object at 0x000001D0B13431D8> kind:property type:property class:<class ‘aiohttp.multipart.MultipartWriter’>
2 size=<property object at 0x000001D0B13433B8> kind:property type:property class:<class ‘aiohttp.multipart.MultipartWriter’>

method

3 append(self, obj: Any, headers: Optional[MultiMapping[str]] = None) -> Payload:

kind=method class=MultipartWriter objtype=function line:787 at …\lib\site-packages\aiohttp\multipart.py

4 append_form(

kind=method class=MultipartWriter objtype=function line:843 at …\lib\site-packages\aiohttp\multipart.py

帮助附加表单未编码部分。

5 append_json(

kind=method class=MultipartWriter objtype=function line:834 at …\lib\site-packages\aiohttp\multipart.py

帮助器附加JSON部分。

6 append_payload(self, payload: Payload) -> Payload:

kind=method class=MultipartWriter objtype=function line:802 at …\lib\site-packages\aiohttp\multipart.py

在多部分写入器中添加一个新的主体部分。

7 write()

kind=method class=MultipartWriter objtype=function

写主体。

84 aiohttp.payload.AsyncIterablePayload

AsyncIterablePayload, aiohttp.payload.AsyncIterablePayload, module=aiohttp.payload, line:401 at site-packages\aiohttp\payload.py

method

1 write()

kind=method class=AsyncIterablePayload objtype=function

85 aiohttp.payload.BufferedReaderPayload

BufferedReaderPayload, aiohttp.payload.BufferedReaderPayload, module=aiohttp.payload, line:358 at site-packages\aiohttp\payload.py

property

1 size=<property object at 0x000001D0B12EAE58> kind:property type:property class:<class ‘aiohttp.payload.BufferedReaderPayload’>

86 aiohttp.payload.BytesIOPayload

BytesIOPayload, aiohttp.payload.BytesIOPayload, module=aiohttp.payload, line:349 at site-packages\aiohttp\payload.py

property

1 size=<property object at 0x000001D0B12EAD18> kind:property type:property class:<class ‘aiohttp.payload.BytesIOPayload’>

87 aiohttp.payload.BytesPayload

BytesPayload, aiohttp.payload.BytesPayload, module=aiohttp.payload, line:208 at site-packages\aiohttp\payload.py

method

1 write()

kind=method class=BytesPayload objtype=function

88 aiohttp.payload.IOBasePayload

IOBasePayload, aiohttp.payload.IOBasePayload, module=aiohttp.payload, line:278 at site-packages\aiohttp\payload.py

method

1 write()

kind=method class=IOBasePayload objtype=function

89 aiohttp.payload.JsonPayload

JsonPayload, aiohttp.payload.JsonPayload, module=aiohttp.payload, line:369 at site-packages\aiohttp\payload.py

90 aiohttp.payload.Payload

Payload, aiohttp.payload.Payload, module=aiohttp.payload, line:92 at site-packages\aiohttp\payload.py

property

1 content_type=<property object at 0x000001D0B12EA0E8> kind:property type:property class:<class ‘aiohttp.payload.Payload’>
2 encoding=<property object at 0x000001D0B12EA048> kind:property type:property class:<class ‘aiohttp.payload.Payload’>
3 filename=<property object at 0x000001D0B12E7E08> kind:property type:property class:<class ‘aiohttp.payload.Payload’>
4 headers=<property object at 0x000001D0B12E7EA8> kind:property type:property class:<class ‘aiohttp.payload.Payload’>
5 size=<property object at 0x000001D0B12E7D68> kind:property type:property class:<class ‘aiohttp.payload.Payload’>

method

6 set_content_disposition(

kind=method class=Payload objtype=function line:192 at …\lib\site-packages\aiohttp\payload.py

设置``Content-Disposition``标头。
d```
> #### 7	write()
> kind=method	class=Payload	objtype=function	

写有效载荷。
writer是一个AbstractStreamWriter实例:

### 91 aiohttp.payload.StringIOPayload
> StringIOPayload, aiohttp.payload.StringIOPayload, module=aiohttp.payload, line:273 at site-packages\aiohttp\payload.py
### 92 aiohttp.payload.StringPayload
> StringPayload, aiohttp.payload.StringPayload, module=aiohttp.payload, line:242 at site-packages\aiohttp\payload.py
### 93 aiohttp.payload.TextIOPayload
> TextIOPayload, aiohttp.payload.TextIOPayload, module=aiohttp.payload, line:302 at site-packages\aiohttp\payload.py
#### property
> 1	size=<property object at 0x000001D0B12EAAE8>	kind:property	type:property	class:<class 'aiohttp.payload.TextIOPayload'>	
#### method
> #### 2	write()
> kind=method	class=TextIOPayload	objtype=function	
### 94 aiohttp.payload.payload_type
> payload_type, aiohttp.payload.payload_type, module=aiohttp.payload, line:82 at site-packages\aiohttp\payload.py
### 95 aiohttp.payload_streamer.streamer
> streamer, aiohttp.payload_streamer.streamer, module=aiohttp.payload_streamer, line:49 at site-packages\aiohttp\payload_streamer.py
### 96 aiohttp.resolver.AsyncResolver
> AsyncResolver, aiohttp.resolver.AsyncResolver, module=aiohttp.resolver, line:68 at site-packages\aiohttp\resolver.py

使用’ aiodns '包进行异步DNS查找

#### method
> #### 1	close()
> kind=method	class=AsyncResolver	objtype=function	
> #### 2	resolve()
> kind=method	class=AsyncResolver	objtype=function	
### 97 aiohttp.resolver.ThreadedResolver
> ThreadedResolver, aiohttp.resolver.ThreadedResolver, module=aiohttp.resolver, line:20 at site-packages\aiohttp\resolver.py

对同步getaddrinfo()调用使用Executor,默认为concurrent.futures.ThreadPoolExecutor。

#### method
> #### 1	close()
> kind=method	class=ThreadedResolver	objtype=function	
> #### 2	resolve()
> kind=method	class=ThreadedResolver	objtype=function	
### 98 aiohttp.resolver.ThreadedResolver
> ThreadedResolver, aiohttp.resolver.ThreadedResolver, module=aiohttp.resolver, line:20 at site-packages\aiohttp\resolver.py

对同步getaddrinfo()调用使用Executor,默认为concurrent.futures.ThreadPoolExecutor。

#### method
> #### 1	close()
> kind=method	class=ThreadedResolver	objtype=function	
> #### 2	resolve()
> kind=method	class=ThreadedResolver	objtype=function	
### 99 aiohttp.signals.Signal
> Signal, aiohttp.signals.Signal, module=aiohttp.signals, line:6 at site-packages\aiohttp\signals.py

基于协程的信号实现。
要将回调函数连接到信号,可以使用任意列表方法。
使用send()协程触发信号,该协程接受命名参数。

#### method
> #### 1	send()
> kind=method	class=Signal	objtype=function	

向所有注册的接收方发送数据。

### 100 aiohttp.streams.DataQueue
> DataQueue, aiohttp.streams.DataQueue, module=aiohttp.streams, line:550 at site-packages\aiohttp\streams.py

DataQueue是一个具有一个读取器的通用阻塞队列。

#### method
> #### 1	at_eof(self) -> bool:
> kind=method	class=DataQueue	objtype=function	line:567 at ...\lib\site-packages\aiohttp\streams.py
> #### 2	exception(self) -> Optional[BaseException]:
> kind=method	class=DataQueue	objtype=function	line:570 at ...\lib\site-packages\aiohttp\streams.py
> #### 3	feed_data(self, data: _T, size: int = 0) -> None:
> kind=method	class=DataQueue	objtype=function	line:582 at ...\lib\site-packages\aiohttp\streams.py
> #### 4	feed_eof(self) -> None:
> kind=method	class=DataQueue	objtype=function	line:591 at ...\lib\site-packages\aiohttp\streams.py
> #### 5	is_eof(self) -> bool:
> kind=method	class=DataQueue	objtype=function	line:564 at ...\lib\site-packages\aiohttp\streams.py
> #### 6	read()
> kind=method	class=DataQueue	objtype=function	
> #### 7	set_exception(self, exc: BaseException) -> None:
> kind=method	class=DataQueue	objtype=function	line:573 at ...\lib\site-packages\aiohttp\streams.py
### 101 aiohttp.streams.EofStream
> EofStream, aiohttp.streams.EofStream, module=aiohttp.streams, line:26 at site-packages\aiohttp\streams.py

流指示。

### 102 aiohttp.streams.FlowControlDataQueue
> FlowControlDataQueue, aiohttp.streams.FlowControlDataQueue, module=aiohttp.streams, line:623 at site-packages\aiohttp\streams.py

FlowControlDataQueue恢复并暂停底层流。
它是解析数据的目的地。

#### method
> #### 1	feed_data(self, data: _T, size: int = 0) -> None:
> kind=method	class=FlowControlDataQueue	objtype=function	line:636 at ...\lib\site-packages\aiohttp\streams.py
> #### 2	read()
> kind=method	class=FlowControlDataQueue	objtype=function	
### 103 aiohttp.streams.StreamReader
> StreamReader, aiohttp.streams.StreamReader, module=aiohttp.streams, line:90 at site-packages\aiohttp\streams.py

asyncio.StreamReader的增强。
支持按行、块或可用的异步迭代:
async for line in reader:

async for chunk in reader.iter_chunked(1024):

async for slice in reader.iter_any():

#### data
> 1	total_bytes=0	kind:data	type:int	class:<class 'aiohttp.streams.StreamReader'>	
#### method
> #### 2	at_eof(self) -> bool:
> kind=method	class=StreamReader	objtype=function	line:200 at ...\lib\site-packages\aiohttp\streams.py

如果缓冲区为空并且调用了’feed_eof’,则返回True。

> #### 3	begin_http_chunk_receiving(self) -> None:
> kind=method	class=StreamReader	objtype=function	line:253 at ...\lib\site-packages\aiohttp\streams.py
> #### 4	end_http_chunk_receiving(self) -> None:
> kind=method	class=StreamReader	objtype=function	line:261 at ...\lib\site-packages\aiohttp\streams.py
> #### 5	exception(self) -> Optional[BaseException]:
> kind=method	class=StreamReader	objtype=function	line:149 at ...\lib\site-packages\aiohttp\streams.py
> #### 6	feed_data(self, data: bytes, size: int = 0) -> None:
> kind=method	class=StreamReader	objtype=function	line:235 at ...\lib\site-packages\aiohttp\streams.py
> #### 7	feed_eof(self) -> None:
> kind=method	class=StreamReader	objtype=function	line:175 at ...\lib\site-packages\aiohttp\streams.py
> #### 8	get_read_buffer_limits(self) -> Tuple[int, int]:
> kind=method	class=StreamReader	objtype=function	line:146 at ...\lib\site-packages\aiohttp\streams.py
> #### 9	is_eof(self) -> bool:
> kind=method	class=StreamReader	objtype=function	line:196 at ...\lib\site-packages\aiohttp\streams.py

如果调用’feed_eof’返回True。

> #### 10	on_eof(self, callback: Callable[[], None]) -> None:
> kind=method	class=StreamReader	objtype=function	line:166 at ...\lib\site-packages\aiohttp\streams.py
> #### 11	read()
> kind=method	class=StreamReader	objtype=function	
> #### 12	read_nowait(self, n: int = -1) -> bytes:
> kind=method	class=StreamReader	objtype=function	line:443 at ...\lib\site-packages\aiohttp\streams.py
> #### 13	readany()
> kind=method	class=StreamReader	objtype=function	
> #### 14	readchunk()
> kind=method	class=StreamReader	objtype=function	

返回一个元组(data, end_of_http_chunk)。
当使用分块传输编码时,http块的结束是一个布尔值,表示数据的结束是否对应于http块的结束,否则始终为False。

> #### 15	readexactly()
> kind=method	class=StreamReader	objtype=function	
> #### 16	readline()
> kind=method	class=StreamReader	objtype=function	
> #### 17	set_exception(self, exc: BaseException) -> None:
> kind=method	class=StreamReader	objtype=function	line:152 at ...\lib\site-packages\aiohttp\streams.py
> #### 18	unread_data(self, data: bytes) -> None:
> kind=method	class=StreamReader	objtype=function	line:215 at ...\lib\site-packages\aiohttp\streams.py

回滚从流中读取一些数据,并将其插入缓冲区头。

> #### 19	wait_eof()
> kind=method	class=StreamReader	objtype=function	
### 104 aiohttp.tracing.TraceConfig
> TraceConfig, aiohttp.tracing.TraceConfig, module=aiohttp.tracing, line:48 at site-packages\aiohttp\tracing.py

第一类,用于跟踪通过ClientSession对象发起的请求。

#### property
> 1	on_connection_create_end=<property object at 0x000001D0B1BBBB88>	kind:property	type:property	class:<class 'aiohttp.tracing.TraceConfig'>	
> 2	on_connection_create_start=<property object at 0x000001D0B1BBBAE8>	kind:property	type:property	class:<class 'aiohttp.tracing.TraceConfig'>	
> 3	on_connection_queued_end=<property object at 0x000001D0B1BBBA48>	kind:property	type:property	class:<class 'aiohttp.tracing.TraceConfig'>	
> 4	on_connection_queued_start=<property object at 0x000001D0B1BBB9A8>	kind:property	type:property	class:<class 'aiohttp.tracing.TraceConfig'>	
> 5	on_connection_reuseconn=<property object at 0x000001D0B1BBBC28>	kind:property	type:property	class:<class 'aiohttp.tracing.TraceConfig'>	
> 6	on_dns_cache_hit=<property object at 0x000001D0B1BBBE08>	kind:property	type:property	class:<class 'aiohttp.tracing.TraceConfig'>	
> 7	on_dns_cache_miss=<property object at 0x000001D0B1BBBEA8>	kind:property	type:property	class:<class 'aiohttp.tracing.TraceConfig'>	
> 8	on_dns_resolvehost_end=<property object at 0x000001D0B1BBBD68>	kind:property	type:property	class:<class 'aiohttp.tracing.TraceConfig'>	
> 9	on_dns_resolvehost_start=<property object at 0x000001D0B1BBBCC8>	kind:property	type:property	class:<class 'aiohttp.tracing.TraceConfig'>	
> 10	on_request_chunk_sent=<property object at 0x000001D0B1BC16D8>	kind:property	type:property	class:<class 'aiohttp.tracing.TraceConfig'>	
> 11	on_request_end=<property object at 0x000001D0B1BC8A98>	kind:property	type:property	class:<class 'aiohttp.tracing.TraceConfig'>	
> 12	on_request_exception=<property object at 0x000001D0B1BBB868>	kind:property	type:property	class:<class 'aiohttp.tracing.TraceConfig'>	
> 13	on_request_redirect=<property object at 0x000001D0B1BBB908>	kind:property	type:property	class:<class 'aiohttp.tracing.TraceConfig'>	
> 14	on_request_start=<property object at 0x000001D0B1BC1638>	kind:property	type:property	class:<class 'aiohttp.tracing.TraceConfig'>	
> 15	on_response_chunk_received=<property object at 0x000001D0B1BC8A48>	kind:property	type:property	class:<class 'aiohttp.tracing.TraceConfig'>	
#### method
> #### 16	freeze(self) -> None:
> kind=method	class=TraceConfig	objtype=function	line:109 at ...\lib\site-packages\aiohttp\tracing.py
> #### 17	trace_config_ctx(
> kind=method	class=TraceConfig	objtype=function	line:103 at ...\lib\site-packages\aiohttp\tracing.py

返回一个新的 trace_config_ctx 实例

### 105 aiohttp.tracing.TraceConnectionCreateEndParams
> TraceConnectionCreateEndParams, aiohttp.tracing.TraceConnectionCreateEndParams, module=aiohttp.tracing, line:282 at site-packages\aiohttp\tracing.py

on_connection_create_end 信号发送的参数

### 106 aiohttp.tracing.TraceConnectionCreateStartParams
> TraceConnectionCreateStartParams, aiohttp.tracing.TraceConnectionCreateStartParams, module=aiohttp.tracing, line:277 at site-packages\aiohttp\tracing.py

on_connection_create_start 信号发送的参数

### 107 aiohttp.tracing.TraceConnectionQueuedEndParams
> TraceConnectionQueuedEndParams, aiohttp.tracing.TraceConnectionQueuedEndParams, module=aiohttp.tracing, line:272 at site-packages\aiohttp\tracing.py

on_connection_queued_end 信号发送的参数

### 108 aiohttp.tracing.TraceConnectionQueuedStartParams
> TraceConnectionQueuedStartParams, aiohttp.tracing.TraceConnectionQueuedStartParams, module=aiohttp.tracing, line:267 at site-packages\aiohttp\tracing.py

on_connection_queued_start 信号发送的参数

### 109 aiohttp.tracing.TraceConnectionReuseconnParams
> TraceConnectionReuseconnParams, aiohttp.tracing.TraceConnectionReuseconnParams, module=aiohttp.tracing, line:287 at site-packages\aiohttp\tracing.py

on_connection_reuseconn 信号发送的参数

### 110 aiohttp.tracing.TraceDnsCacheHitParams
> TraceDnsCacheHitParams, aiohttp.tracing.TraceDnsCacheHitParams, module=aiohttp.tracing, line:306 at site-packages\aiohttp\tracing.py

on_dns_cache_hit 信号发送的参数

#### data
> 1	host=<member 'host' of 'TraceDnsCacheHitParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceDnsCacheHitParams'>	
### 111 aiohttp.tracing.TraceDnsCacheMissParams
> TraceDnsCacheMissParams, aiohttp.tracing.TraceDnsCacheMissParams, module=aiohttp.tracing, line:313 at site-packages\aiohttp\tracing.py

on_dns_cache_miss 信号发送的参数

#### data
> 1	host=<member 'host' of 'TraceDnsCacheMissParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceDnsCacheMissParams'>	
### 112 aiohttp.tracing.TraceDnsResolveHostEndParams
> TraceDnsResolveHostEndParams, aiohttp.tracing.TraceDnsResolveHostEndParams, module=aiohttp.tracing, line:299 at site-packages\aiohttp\tracing.py

on_dns_resolvehost_end 信号发送的参数

#### data
> 1	host=<member 'host' of 'TraceDnsResolveHostEndParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceDnsResolveHostEndParams'>	
### 113 aiohttp.tracing.TraceDnsResolveHostStartParams
> TraceDnsResolveHostStartParams, aiohttp.tracing.TraceDnsResolveHostStartParams, module=aiohttp.tracing, line:292 at site-packages\aiohttp\tracing.py

on_dns_resolvehost_start 信号发送的参数

#### data
> 1	host=<member 'host' of 'TraceDnsResolveHostStartParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceDnsResolveHostStartParams'>	
### 114 aiohttp.tracing.TraceRequestChunkSentParams
> TraceRequestChunkSentParams, aiohttp.tracing.TraceRequestChunkSentParams, module=aiohttp.tracing, line:219 at site-packages\aiohttp\tracing.py

on_request_chunk_sent 信号发送的参数

#### data
> 1	chunk=<member 'chunk' of 'TraceRequestChunkSentParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceRequestChunkSentParams'>	
> 2	method=<member 'method' of 'TraceRequestChunkSentParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceRequestChunkSentParams'>	
> 3	url=<member 'url' of 'TraceRequestChunkSentParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceRequestChunkSentParams'>	
### 115 aiohttp.tracing.TraceRequestEndParams
> TraceRequestEndParams, aiohttp.tracing.TraceRequestEndParams, module=aiohttp.tracing, line:237 at site-packages\aiohttp\tracing.py

on_request_end 信号发送的参数

#### data
> 1	headers=<member 'headers' of 'TraceRequestEndParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceRequestEndParams'>	
> 2	method=<member 'method' of 'TraceRequestEndParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceRequestEndParams'>	
> 3	response=<member 'response' of 'TraceRequestEndParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceRequestEndParams'>	
> 4	url=<member 'url' of 'TraceRequestEndParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceRequestEndParams'>	
### 116 aiohttp.tracing.TraceRequestExceptionParams
> TraceRequestExceptionParams, aiohttp.tracing.TraceRequestExceptionParams, module=aiohttp.tracing, line:247 at site-packages\aiohttp\tracing.py

on_request_exception 信号发送的参数

#### data
> 1	exception=<member 'exception' of 'TraceRequestExceptionParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceRequestExceptionParams'>	
> 2	headers=<member 'headers' of 'TraceRequestExceptionParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceRequestExceptionParams'>	
> 3	method=<member 'method' of 'TraceRequestExceptionParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceRequestExceptionParams'>	
> 4	url=<member 'url' of 'TraceRequestExceptionParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceRequestExceptionParams'>	
### 117 aiohttp.tracing.TraceRequestRedirectParams
> TraceRequestRedirectParams, aiohttp.tracing.TraceRequestRedirectParams, module=aiohttp.tracing, line:257 at site-packages\aiohttp\tracing.py

on_request_redirect 信号发送的参数

#### data
> 1	headers=<member 'headers' of 'TraceRequestRedirectParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceRequestRedirectParams'>	
> 2	method=<member 'method' of 'TraceRequestRedirectParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceRequestRedirectParams'>	
> 3	response=<member 'response' of 'TraceRequestRedirectParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceRequestRedirectParams'>	
> 4	url=<member 'url' of 'TraceRequestRedirectParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceRequestRedirectParams'>	
### 118 aiohttp.tracing.TraceRequestStartParams
> TraceRequestStartParams, aiohttp.tracing.TraceRequestStartParams, module=aiohttp.tracing, line:210 at site-packages\aiohttp\tracing.py

on_request_start 信号发送的参数

#### data
> 1	headers=<member 'headers' of 'TraceRequestStartParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceRequestStartParams'>	
> 2	method=<member 'method' of 'TraceRequestStartParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceRequestStartParams'>	
> 3	url=<member 'url' of 'TraceRequestStartParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceRequestStartParams'>	
### 119 aiohttp.tracing.TraceResponseChunkReceivedParams
> TraceResponseChunkReceivedParams, aiohttp.tracing.TraceResponseChunkReceivedParams, module=aiohttp.tracing, line:228 at site-packages\aiohttp\tracing.py

on_response_chunk_received 信号发送的参数

#### data
> 1	chunk=<member 'chunk' of 'TraceResponseChunkReceivedParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceResponseChunkReceivedParams'>	
> 2	method=<member 'method' of 'TraceResponseChunkReceivedParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceResponseChunkReceivedParams'>	
> 3	url=<member 'url' of 'TraceResponseChunkReceivedParams' objects>	kind:data	type:member_descriptor	class:<class 'aiohttp.tracing.TraceResponseChunkReceivedParams'>	
## 私有或局部
> 120	_helpers	<module 'aiohttp._helpers' from '...\\lib\\site-packages\\aiohttp\\_helpers.cp37-win_amd64.pyd'>
> 121	_http_writer	<module 'aiohttp._http_writer' from '...\\lib\\site-packages\\aiohttp\\_http_writer.cp37-win_amd64.pyd'>
> 122	_http_parser	<module 'aiohttp._http_parser' from '...\\lib\\site-packages\\aiohttp\\_http_parser.cp37-win_amd64.pyd'>
> 123	_websocket	<module 'aiohttp._websocket' from '...\\lib\\site-packages\\aiohttp\\_websocket.cp37-win_amd64.pyd'>
> 124	_frozenlist	<module 'aiohttp._frozenlist' from '...\\lib\\site-packages\\aiohttp\\_frozenlist.cp37-win_amd64.pyd'>
## 剩余
> 125	__doc__	
> 126	__loader__	<_frozen_importlib_external.SourceFileLoader object at 0x000001D0AE095208>
> 127	__spec__	ModuleSpec(name='aiohttp', loader=<_frozen_importlib_external.SourceFileLoader object at 0x000001D0AE095208>, origin='...\\lib\\site-packages\\aiohttp\\__init__.py', submodule_search_locations=['...\\lib\\site-packages\\aiohttp'])
> 128	Tuple	typing.Tuple
> 129	HttpVersion10	HttpVersion(major=1, minor=0)
> 130	HttpVersion11	HttpVersion(major=1, minor=1)
> 131	PAYLOAD_REGISTRY	<aiohttp.payload.PayloadRegistry object at 0x000001D0B12E9648>
> 132	EMPTY_PAYLOAD	<aiohttp.streams.EmptyStreamReader object at 0x000001D0B127B2C8>
## 【aiohttp.hdrs】
> hdrs, fullname=aiohttp.hdrs, file=aiohttp\hdrs.py
## 【aiohttp.typedefs】
> typedefs, fullname=aiohttp.typedefs, file=aiohttp\typedefs.py
## 【aiohttp.http_exceptions】
> http_exceptions, fullname=aiohttp.http_exceptions, file=aiohttp\http_exceptions.py
## 【aiohttp.tcp_helpers】
> tcp_helpers, fullname=aiohttp.tcp_helpers, file=aiohttp\tcp_helpers.py
## 【aiohttp.base_protocol】
> base_protocol, fullname=aiohttp.base_protocol, file=aiohttp\base_protocol.py
## 【aiohttp.log】
> log, fullname=aiohttp.log, file=aiohttp\log.py
## 【aiohttp._helpers】
> _helpers, fullname=aiohttp._helpers, file=aiohttp\_helpers.cp37-win_amd64.pyd
## 【aiohttp.helpers】
> helpers, fullname=aiohttp.helpers, file=aiohttp\helpers.py
## 【aiohttp.abc】
> abc, fullname=aiohttp.abc, file=aiohttp\abc.py
## 【aiohttp._http_writer】
> _http_writer, fullname=aiohttp._http_writer, file=aiohttp\_http_writer.cp37-win_amd64.pyd
## 【aiohttp.http_writer】
> http_writer, fullname=aiohttp.http_writer, file=aiohttp\http_writer.py
## 【aiohttp.streams】
> streams, fullname=aiohttp.streams, file=aiohttp\streams.py
## 【aiohttp._http_parser】
> _http_parser, fullname=aiohttp._http_parser, file=aiohttp\_http_parser.cp37-win_amd64.pyd
## 【aiohttp.http_parser】
> http_parser, fullname=aiohttp.http_parser, file=aiohttp\http_parser.py
## 【aiohttp._websocket】
> _websocket, fullname=aiohttp._websocket, file=aiohttp\_websocket.cp37-win_amd64.pyd
## 【aiohttp.http_websocket】
> http_websocket, fullname=aiohttp.http_websocket, file=aiohttp\http_websocket.py
## 【aiohttp.http】
> http, fullname=aiohttp.http, file=aiohttp\http.py
## 【aiohttp.payload】
> payload, fullname=aiohttp.payload, file=aiohttp\payload.py
## 【aiohttp.client_exceptions】
> client_exceptions, fullname=aiohttp.client_exceptions, file=aiohttp\client_exceptions.py
## 【aiohttp.multipart】
> multipart, fullname=aiohttp.multipart, file=aiohttp\multipart.py
## 【aiohttp.formdata】
> formdata, fullname=aiohttp.formdata, file=aiohttp\formdata.py
## 【aiohttp.client_reqrep】
> client_reqrep, fullname=aiohttp.client_reqrep, file=aiohttp\client_reqrep.py
## 【aiohttp.client_ws】
> client_ws, fullname=aiohttp.client_ws, file=aiohttp\client_ws.py
## 【aiohttp.client_proto】
> client_proto, fullname=aiohttp.client_proto, file=aiohttp\client_proto.py
## 【aiohttp.locks】
> locks, fullname=aiohttp.locks, file=aiohttp\locks.py
## 【aiohttp.resolver】
> resolver, fullname=aiohttp.resolver, file=aiohttp\resolver.py
## 【aiohttp.connector】
> connector, fullname=aiohttp.connector, file=aiohttp\connector.py
## 【aiohttp.cookiejar】
> cookiejar, fullname=aiohttp.cookiejar, file=aiohttp\cookiejar.py
## 【aiohttp._frozenlist】
> _frozenlist, fullname=aiohttp._frozenlist, file=aiohttp\_frozenlist.cp37-win_amd64.pyd
## 【aiohttp.frozenlist】
> frozenlist, fullname=aiohttp.frozenlist, file=aiohttp\frozenlist.py
## 【aiohttp.signals】
> signals, fullname=aiohttp.signals, file=aiohttp\signals.py
## 【aiohttp.tracing】
> tracing, fullname=aiohttp.tracing, file=aiohttp\tracing.py
## 【aiohttp.client】
> client, fullname=aiohttp.client, file=aiohttp\client.py
## 【aiohttp.payload_streamer】
> payload_streamer, fullname=aiohttp.payload_streamer, file=aiohttp\payload_streamer.py
## 【json】
> json, fullname=json, file=json\__init__.py
## 【os】
> os, fullname=os, file=os.py
## 【pathlib】
> pathlib, fullname=pathlib, file=pathlib.py
## 【sys】
> sys, fullname=sys, file=
## 【asyncio】
> asyncio, fullname=asyncio, file=asyncio\__init__.py
## 【socket】
> socket, fullname=socket, file=socket.py
## 【logging】
> logging, fullname=logging, file=logging\__init__.py
## 【builtins】
> builtins, fullname=builtins, file=
## 【base64】
> base64, fullname=base64, file=base64.py
## 【binascii】
> binascii, fullname=binascii, file=
## 【cgi】
> cgi, fullname=cgi, file=cgi.py
## 【datetime】
> datetime, fullname=datetime, file=datetime.py
## 【functools】
> functools, fullname=functools, file=functools.py
## 【inspect】
> inspect, fullname=inspect, file=inspect.py
## 【netrc】
> netrc, fullname=netrc, file=netrc.py
## 【platform】
> platform, fullname=platform, file=platform.py
## 【re】
> re, fullname=re, file=re.py
## 【time】
> time, fullname=time, file=
## 【warnings】
> warnings, fullname=warnings, file=warnings.py
## 【weakref】
> weakref, fullname=weakref, file=weakref.py
## 【async_timeout】
> async_timeout, fullname=async_timeout, file=async_timeout\__init__.py
## 【attr】
> attr, fullname=attr, file=attr\__init__.py
## 【collections】
> collections, fullname=collections, file=collections\__init__.py
## 【zlib】
> zlib, fullname=zlib, file=
## 【abc】
> abc, fullname=abc, file=abc.py
## 【string】
> string, fullname=string, file=string.py
## 【random】
> random, fullname=random, file=random.py
## 【http】
> http, fullname=http, file=http\__init__.py
## 【enum】
> enum, fullname=enum, file=enum.py
## 【io】
> io, fullname=io, file=io.py
## 【mimetypes】
> mimetypes, fullname=mimetypes, file=mimetypes.py
## 【ssl】
> ssl, fullname=ssl, file=ssl.py
## 【uuid】
> uuid, fullname=uuid, file=uuid.py
## 【codecs】
> codecs, fullname=codecs, file=codecs.py
## 【traceback】
> traceback, fullname=traceback, file=traceback.py
## 【chardet】
> chardet, fullname=chardet, file=chardet\__init__.py
## 【pickle】
> pickle, fullname=pickle, file=pickle.py
## 【hashlib】
> hashlib, fullname=hashlib, file=hashlib.py
## 【types】
> types, fullname=types, file=types.py

相关文章:

一图看懂 aiohttp 模块:基于 asyncio 的异步HTTP网络库, 资料整理+笔记(大全)

本文由 大侠(AhcaoZhu)原创&#xff0c;转载请声明。 链接: https://blog.csdn.net/Ahcao2008 一图看懂 aiohttp 模块&#xff1a;基于 asyncio 的异步HTTP网络库, 资料整理笔记&#xff08;大全&#xff09; 摘要模块图类关系图模块全展开【aiohttp】统计常量模块1 aiohttp.hd…...

Linux + 香橙派 + V4L2 + http 实现远程监控摄像头在网页端显示

项目场景&#xff1a; 项目需求&#xff0c;需要做一个基于边缘端的人脸识别远程监控摄像头并在网页前端展示 &#xff0c;这里采用国产香橙派作为边缘计算终端&#xff0c;安装ubuntu系统&#xff0c;系统中采用v4l2接口对摄像头进行获取&#xff0c;当客户端通过网页进行请求…...

《编码——隐匿在计算机软硬件背后的语言》精炼——第15-16章(十六进制,RAM)

“学习如春起之苗&#xff0c;不见其增&#xff0c;日有所长。” —— 宋代朱熹 文章目录 十六进制十六进制概述十六进制表字节到十六进制 存储器特定的读功能特定的写功能RAM大型RAM阵列 十六进制 十六进制概述 十六进制是一种适用于计算机的进制法。在十进制中&#xff0c;…...

leetcode.1376 通知所有员工所需的时间 - bfs/dfs + 树

1376. 通知所有员工所需的时间 目录 一、bfs 二、dfs 题目&#xff1a; 公司里有 n 名员工&#xff0c;每个员工的 ID 都是独一无二的&#xff0c;编号从 0 到 n - 1。公司的总负责人通过 headID 进行标识。在 manager 数组中&#xff0c;每个员工都有一个直属负责人&#x…...

AtCoder Beginner Contest 300——A-G题讲解

蒟蒻来讲题&#xff0c;还望大家喜。若哪有问题&#xff0c;大家尽可提&#xff01; Hello, 大家好哇&#xff01;本初中生蒟蒻讲解一下AtCoder Beginner Contest 300这场比赛的A-G题&#xff01; A - N-choice question 原题 Problem Statement Given integers A A A and…...

Go:值与指针

1. 计算机中的值 在百万年的演化历史中&#xff0c;人类对事物的属性进行了抽象&#xff0c;有了数量、精度、信息等概念的表示&#xff0c;对应的我们称之为整数、小数、文本文字等。计算机出现后&#xff0c;我们使用计算机对真实世界的问题进行建模&#xff0c;通过计算机的…...

【Linux】进程学习(2)---理解进程操作

文章目录 查看进程通过系统目录查看通过ps命令查看 通过系统调用获取进程标识符通过系统调用创建进程初识fork函数fork函数的返回值 进程状态阻塞与运行状态Linux内核源码中的进程状态运行状态-R浅度睡眠状态-S深度睡眠状态-D暂停状态-T僵尸状态-Z死亡状态-X 查看进程 通过系统…...

基于springcloud实现的医院信息系统

访问【WRITE-BUG数字空间】_[内附完整源码和文档] 医疗信息就诊系统&#xff0c;系统主要功能按照数据流量、流向及处理过程分为临床诊疗、药品管理、财务管理、患者管理。诊疗活动由各工作站配合完成&#xff0c;并将临床信息进行整理、处理、汇总、统计、分析等。本系统包括以…...

设计模式-创建型模式-(工厂、简单工厂、抽象工厂)

一、简单工厂模式 上代码 public class FoodFactory {public static Food makeFood(String name) {if (name.equals("noodle")) {Food noodle new LanZhouNoodle();noodle.addSpicy("more");return noodle;} else if (name.equals("chicken")…...

JAVA12新特性

JAVA12新特性 概述 2019年3月19日,java12正式发布了,总共有8个新的JEP(JDK Enhancement Proposals) JDK 12 is the open-source reference implementation of version 12 of the Java SE12 Platform as specified by by JSR 386 in the Java Community Process. JDK 12 reac…...

Nginx 静态文件、反向代理、负载均衡、缓存、SSL/TLS 加密、gzip 压缩 等等

Nginx的功能 1. 静态文件服务器2. 反向代理服务器3. 负载均衡4. 缓存5. SSL/TLS 加密6. URL 重写7. HTTP/28. WebSocket9. 反向代理缓存10. 安全限制11. gzip 压缩12. 请求限速13. 日志记录14. SSL 证书续订 Nginx 是一个高性能的开源 Web 服务器和反向代理服务器&#xff0c;它…...

Linux设备驱动模型(一)

一、sysfs文件系统 sysfs是一个虚拟文件系统&#xff0c;将内核总的设备对象的链接关系&#xff0c;以文件目录的方式表示出来&#xff0c;并提对设备提供读写接口。 二、kobject kobject是内核中对象表示的基类&#xff0c;可以认为所有的内核对象都是一个kobject kobject单…...

【Python入门篇】——Python基础语法(标识符与运算符)

作者简介&#xff1a; 辭七七&#xff0c;目前大一&#xff0c;正在学习C/C&#xff0c;Java&#xff0c;Python等 作者主页&#xff1a; 七七的个人主页 文章收录专栏&#xff1a; Python入门&#xff0c;本专栏主要内容为Python的基础语法&#xff0c;Python中的选择循环语句…...

扩展 VirtualBox 已分配磁盘的方法

扩展 VirtualBox 已分配磁盘的方法 第一步&#xff1a;用VirtualBox命令行调整已分配磁盘的大小第二步&#xff1a;用windows磁盘管理工具扩展磁盘空间其他无关配置如何选择虚拟机的芯片组 注意&#xff1a;扩展操作只支持 vdi 格式的磁盘&#xff0c;就是VirtualBox自己的磁盘…...

【LeetCode】646. 最长数对链

646. 最长数对链&#xff08;中等&#xff09; 思路 这道题和 300. 最长递增子序列 类似&#xff0c;我们可以定义 dp 数组&#xff0c;其中 dp[i] 表示以 i 结尾的子序列的性质。在处理好每个位置后&#xff0c;统计一遍各个位置的结果即可得到题目要求的结果。 但是题目中强…...

Makefile教程(Makefile的结构)

文章目录 前言一、Makefile的结构二、深入案例三、Makefile中的一些技巧总结 前言 一、Makefile的结构 Makefile 通常由一系列规则组成&#xff0c;每条规则定义了如何从源文件生成目标文件。每个规则又由目标、依赖和命令三部分组成。 下面是 Makefile 规则的基本结构&…...

SpringMVC(后)SSM整合

10、文件上传和下载 10.1、文件下载 ResponseEntity用于控制器方法的返回值类型&#xff0c;该控制器方法的返回值就是响应到浏览器的响应报文 使用ResponseEntity实现下载文件的功能 RequestMapping("/testDown") public ResponseEntity<byte[]> testResp…...

【博弈论】【第一章】博弈论导论

博弈论导论 【例题】选择数字【例题】巴什博弈【例题】射手博弈博弈论的基本概念&#xff1a;参与人战略行动信息支付函数【例题】分100元 课程概述&#xff1a; 【例题】选择数字 两个参与人A和B&#xff0c;轮流选择[3,4,5,6,7,8,9]中的一个整数&#xff08;可重复)。当累计…...

keil移植linux(makefile)

文章目录 运行环境&#xff1a;1.1 freeRTOS_LED工程移植1)修改cubeMX配置2)setting设置3)launch设置4)修改makefile5)修改代码6)实验效果 运行环境&#xff1a; ubuntu18.04.melodic 宏基暗影骑士笔记本 stm32f427IIH6 stlink 9-24v可调电源 robomaster A 板 1.1 freeRTOS_L…...

C++——类和对象(3)

作者&#xff1a;几冬雪来 时间&#xff1a;2023年5月6日 内容&#xff1a;C类和对象内容讲解 目录 前言&#xff1a; 1.运算符重载&#xff08;续&#xff09;&#xff1a; 2.赋值重载&#xff1a; 结尾&#xff1a; 前言&#xff1a; 在上一篇博客中我们再一次讲解了…...

itop-3568开发板驱动学习笔记(24)设备树(三)时钟实例分析

《【北京迅为】itop-3568开发板驱动开发指南.pdf》 学习笔记 文章目录 生产者属性#clock-cells 属性clock-output-namesclock-frequencyassigned-clockclock-indicesassigned-clock-parents 消费者属性 设备树中的时钟信息以时钟树形式体现&#xff0c;时钟树包括时钟的属性和结…...

linux中使用docker部署微服务

目录 一、制作jar包&#xff08;如果看一眼很简单&#xff0c;可以直接使用结尾的jar&#xff09; 1.首先创建一个微服务 demo2 2.启动微服务&#xff08;在DemoApplication上右键执行启动就行&#xff09; 注意&#xff1a;其他操作导致的 可能遇到的报错 3.修改端口 4.新…...

操作系统考试复习—第三章 优先级倒置 死锁问题

当前OS广泛采用优先级调度算法和抢占方式&#xff0c;然而在系统中存在着影响进程运行的资源从而可能产生"优先级倒置"现象 具体解释为&#xff1a;在原本的调度算法设计中&#xff0c;高优先级进程可以抢占低优先级的CPU资源&#xff0c;先执行高优先级任务。但是存…...

OpenHarmony送显流程分析

OpenHarmony送显流程分析 引言 本文档主要记录OpenHarmony在渲染完成之后如何进行合成和送显流程的。这个过程牵涉的代码很多&#xff0c;而且流程也是比较繁琐的。所以我一定要坚持下来。千万不能半途而废&#xff0c;也不要想着一口气吃出一个胖子&#xff0c;路漫漫其修远兮…...

Java面试题字节流字符流

String 编码UTF-8 和GBK的区别 GBK编码&#xff1a;是指中国的中文字符&#xff0c;其实它包含了简体中文与繁体中文字符&#xff0c;另外还有一种字符 “gb2312”&#xff0c;这种字符仅能存储简体中文字符。 UTF-8编码&#xff1a;它是一种全国家通过的一种编码&#x…...

Self-Attention结构细节及计算过程

一、结构 上面那个图其实不是那么重要&#xff0c;只要知道将输入的x矩阵转换成三个矩阵进行计算即可。自注意力结构的输入为 输入矩阵的三个变形 Q&#xff08;query矩阵&#xff09;、K&#xff08;key矩阵&#xff09;、V&#xff08;value矩阵&#xff09;构成&#xff0c;…...

在Ubuntu18.04中安装uWebSockets库

目录 1.下载uWebSockets库2.下载uSockets3.安装openssl开发包4.编译首先说明这里使用的Ubuntu版本为18.04。 1.下载uWebSockets库 下载uWebSockets库有两种方式,一是终端,从Github中克隆uWebSockets库到Ubuntu本地文件夹,二是打开uWebSockets库下载链接自己下载到Windows,然…...

【Fluent】接着上一次计算的结果继续计算,利用计算过程中得到的物理场(温度、速度、压力等)插值Interpolate文件初始化模型的方法

一、问题背景 因为fluent中支持的初始化无非三种类型。 1、Standard initialization 标准初始化 2、Hybridinitialization 混合初始化 3、FMG initialization FMG初始化 另外&#xff0c;还可以用UDF通过坐标判断的方式予以初始化。 但是这些初始化方法都没办法利用以前计算过…...

第二十九章 使用消息订阅发布实现组件通信

PubSubJS库介绍 如果你想在React中使用第三方库来实现Pub/Sub机制&#xff0c;PubSubJS是一个不错的选择。它是一个轻量级的库&#xff0c;可以在浏览器和Node.js环境中使用。 PubSubJS提供了一个简单的API&#xff0c;可以让你在应用程序中订阅和发布消息。你可以使用npm来安…...

Transformer的位置编码

1. 什么是位置编码&#xff0c;为什么要使用位置编码 简单来说位置编码就是给一个句子中的每个token一个位置信息&#xff0c;通过位置编码可以明确token的前后顺序关系。 对任何语言来说&#xff0c;句子中词汇的顺序和位置都是非常重要的。它们定义了语法&#xff0c;从而定…...

浦东网站建设价格/网络销售渠道有哪些

正常理工科非科班学校水平 强调自己数学能力强&#xff0c;并且数学能力可以变现&#xff0c;而不是单纯的做数学研究。 如果面试官对你经历毫不感兴趣&#xff0c;那么就会问很多计算机基础&#xff0c;或者算法题&#xff0c;up主的方法是尽可能与面试官聊到一起&#xff0c;…...

彩票网站做代理/seo管理系统

支付宝数据建模介绍转载于:https://www.cnblogs.com/dailidong/p/7571151.html...

个人网站后台模板/成都全网营销推广

安装&#xff1a;在官网https://jenkins.io/ 下载安装包安装完成后&#xff0c;命令行进入安装目录下替换镜像源&#xff1a;打开C:\Users\xxx.jenkins\hudson.model.UpdateCenter.xml文件&#xff0c;将 url 中的 https://updates.jenkins.io/update-center.json 更改为 https…...

域名备案接入商查询/太原seo推广外包

最近发布了面向金融机构的OpenGamma平台0.8.0版 &#xff0c;具有新的Web GUI和用于深入执行计划和计算的功能。 在这次采访中&#xff0c;JAXenter与OpenGamma首席执行官兼首席技术官Kirk Wylie进行了交谈&#xff0c;以了解0.8.0版本中的新增功能。 JAXenter&#xff1a;您可…...

做网站 前台和后台/怎么上百度推广产品

作为开发者&#xff0c;我们一直在尝试通过使用设计模式和尝试新的健壮型框架来寻找新的方式来编写设计良好且健壮的代码。在本篇文章中&#xff0c;我们将通过 Laravel 的 IoC 组件探索依赖注入设计模式&#xff0c;并了解它如何改进我们的设计。依赖注入依赖注入一词是由 Mar…...

金华网站开发公司/各大网站收录查询

RabbitMQ是消息队列。之前学过的队列queue&#xff1a;线程queue&#xff08;threading queue&#xff09;&#xff0c;只是多个线程之间进行数据交互。进程queue&#xff08;processing queue&#xff09;&#xff0c;只是父进程与子进程进行交互。两个独立的程序之间进行交互…...