Home | History | Annotate | Download | only in http

Lines Matching refs:http

0 """HTTP server classes.
3 Note: BaseHTTPRequestHandler doesn't implement any HTTP request; see
7 It does, however, optionally implement HTTP/1.1 persistent connections,
37 # HTTP Working Group T. Berners-Lee
39 # <draft-ietf-http-v10-spec-00.txt> H. Frystyk Nielsen
42 # URL: http://www.ics.uci.edu/pub/ietf/http/draft-ietf-http-v10-spec-00.txt
51 # URL: http://www.faqs.org/rfcs/rfc2616.html
73 # | request: The first line of the HTTP request as sent by the client.
76 # | *not including the HTTP/1.0 header*, - if not available
94 import http.client
108 from http import HTTPStatus
114 "http://www.w3.org/TR/html4/strict.dtd">
117 <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
149 """HTTP request handler base class.
151 The following explanation of HTTP serves to guide you through the
153 HTTP (so you don't need to read the code to figure out I'm wrong
156 HTTP (HyperText Transfer Protocol) is an extensible protocol on
172 and <version> should be the string "HTTP/1.0" or "HTTP/1.1".
189 (i.e. <version> is left out) then this is assumed to be an HTTP
193 The reply form of the HTTP 1.x protocol again has three parts:
205 where <version> is the protocol version ("HTTP/1.0" or "HTTP/1.1"),
265 # Most web servers default to HTTP 0.9, i.e. don't send a status line.
266 default_request_version = "HTTP/0.9"
292 if not version.startswith('HTTP/'):
299 # - HTTP/2.4 is a lower version than HTTP/2.13, which in
300 # turn is lower than HTTP/12.3;
310 if version_number >= (1, 1) and self.protocol_version >= "HTTP/1.1":
315 "Invalid HTTP version (%s)" % base_version_number)
330 "Bad HTTP/0.9 request type (%r)" % command)
336 self.headers = http.client.parse_headers(self.rfile,
338 except http.client.LineTooLong as err:
344 except http.client.HTTPException as err:
356 self.protocol_version >= "HTTP/1.1"):
361 self.protocol_version >= "HTTP/1.1" and
362 self.request_version >= "HTTP/1.1"):
386 """Handle a single HTTP request.
389 __doc__ string for information on how to handle specific HTTP
434 * code: an HTTP error code
498 if self.request_version != 'HTTP/0.9':
512 if self.request_version != 'HTTP/0.9':
526 if self.request_version != 'HTTP/0.9':
613 # The version of the HTTP protocol we support.
614 # Set this to HTTP/1.1 to enable automatic keepalive
615 protocol_version = "HTTP/1.0"
618 MessageClass = http.client.HTTPMessage
629 """Simple HTTP request handler with GET and HEAD commands.
768 '"http://www.w3.org/TR/html4/strict.dtd">')
770 r.append('<meta http-equiv="Content-Type" '
956 """Complete HTTP server with GET, HEAD and POST commands.
1074 # Reference: http://hoohoo.ncsa.uiuc.edu/cgi/env.html
1221 protocol="HTTP/1.0", port=8000, bind=""):
1222 """Test the HTTP request handler class.
1224 This runs an HTTP server on port 8000 (or the port argument).
1232 serve_message = "Serving HTTP on {host} port {port} (http://{host}:{port}/) ..."