class documentation

class _HttpClientToServerMessageReader(http.HttpMessageReader):

View In Hierarchy

Reads an HTTP request sent by client.

Method ParseStartLine Parses the start line sent by client.
Constant HEADER_LENGTH_MAX Undocumented
Constant START_LINE_LENGTH_MAX Undocumented

Inherited from HttpMessageReader:

Method __init__ Reads an HTTP message from a socket.
Constant PS_BODY Undocumented
Constant PS_COMPLETE Undocumented
Constant PS_HEADERS Undocumented
Constant PS_START_LINE Undocumented
Instance Variable body_buffer Undocumented
Instance Variable content_length Undocumented
Instance Variable header_buffer Undocumented
Instance Variable msg Undocumented
Instance Variable parser_status Undocumented
Instance Variable peer_will_close Undocumented
Instance Variable sock Undocumented
Instance Variable start_line_buffer Undocumented
Method _CheckHeaderLength Limits the header buffer size.
Method _CheckStartLineLength Limits the start line buffer size.
Method _ContinueParsing Main function for HTTP message state machine.
Method _ParseHeaders Parses the headers.
Method _WillPeerCloseConnection Evaluate whether peer will close the connection.
def ParseStartLine(self, start_line):

Parses the start line sent by client.

Example: "GET /index.html HTTP/1.1"

Parameters
start_line:stringStart line
HEADER_LENGTH_MAX: int =

Undocumented

Value
4096
START_LINE_LENGTH_MAX: int =

Undocumented

Value
8192