httplib
2018-04-13 本文已影响0人
xncode
class httplib.HTTPConnection(host[, port[, strict[, timeout[, source_address]]]])
HTTPConnection.request(method, url[, body[, headers]])
HTTPConnection.getresponse()
HTTPConnection.set_debuglevel(level)
HTTPConnection.set_tunnel(host, port=None, headers=None)
HTTPConnection.connect()
HTTPConnection.close()
控制请求流程
HTTPConnection.putrequest(request, selector[, skip_host[, skip_accept_encoding]])
HTTPConnection.putheader(header, argument[, ...])
HTTPConnection.endheaders(message_body=None)
HTTPConnection.send(data)
class httplib.HTTPSConnection(host[, port[, key_file[, cert_file[, strict[, timeout[, source_address[, context]]]]]]])
class httplib.HTTPResponse(sock, debuglevel=0, strict=0)
read getheader getheaders fileno msg version status reason