http.message

Module Contents

Classes

Message(self,cfg,unreader)
Request(self,cfg,unreader,req_number=1)
class Message(cfg, unreader)
__init__(cfg, unreader)
parse(unreader)
parse_headers(data)
set_body_reader()
should_close()
class Request(cfg, unreader, req_number=1)
__init__(cfg, unreader, req_number=1)
get_data(unreader, buf, stop=False)
parse(unreader)
read_line(unreader, buf, limit=0)
proxy_protocol(line)

Detect, check and parse proxy protocol.

Raises:ForbiddenProxyRequest, InvalidProxyLine.
Returns:True for proxy protocol line else False
proxy_protocol_access_check()
parse_proxy_protocol(line)
parse_request_line(line_bytes)
set_body_reader()