Python HTTP library API commonalities
 Share
The version of the browser you are using is no longer supported. Please upgrade to a supported browser.Dismiss

 
View only
 
 
Still loading...
ABCDEFG
1
HTTPurllib/urllib3requestsaiohttpTwistedTornadoCommon API
2
21.192.121.216.64.4
3
https://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html
http://urllib3.readthedocs.io/en/stable/reference/index.html
http://docs.python-requests.org/en/master/api/#requests.request
http://aiohttp.readthedocs.io/en/stable/client_reference.html#aiohttp.ClientSession.request
http://twistedmatrix.com/documents/current/api/twisted.web.client.HTTPClientFactory.html
http://www.tornadoweb.org/en/stable/httpclient.html#tornado.httpclient.HTTPRequest
4
methodmethodmethodmethodmethodmethodmethod
5
URLurlurlurlurlurlurl
6
versionversion
7
headersheadersheadersheadersheadersheaders
headers (HTTP/2 sends lowercase over the wire:
http://httpwg.org/specs/rfc7540.html#HttpHeaders)
8
bodybodydatadatapostdatabody
body (data if use Content-Type to auto-convert;
https://twitter.com/brettsky/status/817529415995273216)
9
data chunked?encode_chunkedchunked: int
10
URL parametersparamsparams
11
JSON bodyjson
12
cookiescookiescookies
13
filesfiles
14
authauthauth
15
timeouttimeouttimeouttimeoutrequest_timeouttimeout
16
allow redirectionallow_redirectsallow_redirectsfollowRedirectfollow_redirects
follow_redirects (https://twitter.com/brettsky/status/817529725400662016)
17
proxiesproxiesproxy~
18
verify SSL certverifyvalidate_certs
19
Stream responsestream~
20
Certificate filecertca_cert
21
Skip auto-generated headersskip_auto_headers
22
Compress bodycompressuse_gzip
23
Expect 100 responseexpect100expect_100_continue
24
Read until EOF if no Content-Lengthread_until_eof
25
Proxy authproxy_auth~
26
User agentagentuser_agent
27
Redirection limitredirectionLimitmax_redirects
28
If POST redirected, follow with GETafterFoundGet
29
Body producerbody_producer
30
Auth usernameauth_username
31
Auth passwordauth_password
32
Auth modeauth_mode
33
Connection timeout (not request timeout)
connect_timeout
34
If-Modified-Since timestampif_modified_since
35
Automatically decompress responsedecompress_response
36
Reponse callbackstreaming_callback
37
Proxy hostproxy_host
38
Proxy portproxy_port
39
Proxy usernameproxy_username
40
Proxy passwordproxy_password
41
Header callbackheader_callback
42
Prepare more argumentsprepare_curl_callback
43
Client key for certificatesclient_key
44
Client certificatesclient_cert
45
SSL optionsssl_options
46
Allow IPv6 connectionsallow_ipv6
Loading...
 
 
 
Requests
Responses
Exceptions