Package ganeti :: Package http :: Module server :: Class _HttpClientToServerMessageReader
[hide private]
[frames] | no frames]

Class _HttpClientToServerMessageReader

source code


Reads an HTTP request sent by client.

Instance Methods [hide private]
 
ParseStartLine(self, start_line)
Parses the start line sent by client.
source code

Inherited from HttpMessageReader: __init__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  START_LINE_LENGTH_MAX = 8192
  HEADER_LENGTH_MAX = 4096

Inherited from HttpMessageReader: PS_BODY, PS_COMPLETE, PS_HEADERS, PS_START_LINE

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

ParseStartLine(self, start_line)

source code 

Parses the start line sent by client.

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

Parameters:
  • start_line (string) - Start line
Overrides: HttpMessageReader.ParseStartLine