Lines Matching defs:http
74 import http
104 globals().update(http.HTTPStatus.__members__)
108 responses = {v: v.phrase for v in http.HTTPStatus.__members__.values()}
114 # Header name/value ABNF (http://tools.ietf.org/html/rfc7230#section-3.2)
135 # VCHAR defined in http://tools.ietf.org/html/rfc5234#appendix-B.1
153 # to prevent http header injection.
178 # http.server.CGIHTTPRequestHandler. Maybe move the code there so
261 # of http and urllib expect different attributes for the
263 # provided as a backwards compatibility layer for http
724 If the headers are unknown, raises http.client.ResponseNotReady.
892 if host[i+1:] == "": # http://foo.com:/ == http://foo.com/
924 if code != http.HTTPStatus.OK:
944 sys.audit("http.client.connect", self, self.host, self.port)
997 sys.audit("http.client.send", self, datablock)
1000 sys.audit("http.client.send", self, data)
1156 if url.startswith('http'):
1219 # prevent http header injection
1428 context.set_alpn_protocols(['http/1.1'])