MCPcopy
hub / github.com/aio-libs/aiohttp / request

Method request

aiohttp/client.py:94–126  ·  view source on GitHub ↗

Perform HTTP request.

(self, method, url, *,
                params=None,
                data=None,
                headers=None,
                skip_auto_headers=None,
                auth=None,
                allow_redirects=True,
                max_redirects=10,
                encoding='utf-8',
                version=None,
                compress=None,
                chunked=None,
                expect100=False,
                read_until_eof=True)

Source from the content-addressed store, hash-verified

92 self._loop.call_exception_handler(context)
93
94 def request(self, method, url, *,
95 params=None,
96 data=None,
97 headers=None,
98 skip_auto_headers=None,
99 auth=None,
100 allow_redirects=True,
101 max_redirects=10,
102 encoding='utf-8',
103 version=None,
104 compress=None,
105 chunked=None,
106 expect100=False,
107 read_until_eof=True):
108 """Perform HTTP request."""
109
110 return _RequestContextManager(
111 self._request(
112 method,
113 url,
114 params=params,
115 data=data,
116 headers=headers,
117 skip_auto_headers=skip_auto_headers,
118 auth=auth,
119 allow_redirects=allow_redirects,
120 max_redirects=max_redirects,
121 encoding=encoding,
122 version=version,
123 compress=compress,
124 chunked=chunked,
125 expect100=expect100,
126 read_until_eof=read_until_eof))
127
128 @asyncio.coroutine
129 def _request(self, method, url, *,

Callers 9

test_session_cookiesMethod · 0.95
test_session_headersMethod · 0.95
test_session_authMethod · 0.95
goMethod · 0.95
curlFunction · 0.95
processMethod · 0.95

Calls 2

_requestMethod · 0.95

Tested by 7

test_session_cookiesMethod · 0.76
test_session_headersMethod · 0.76
test_session_authMethod · 0.76
goMethod · 0.76