RPKI Engine  1.0
Public Member Functions | Public Attributes | Static Public Attributes
rpki::http::http_message Class Reference
Inheritance diagram for rpki::http::http_message:
Inheritance graph
Collaboration diagram for rpki::http::http_message:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def __str__
def format
def normalize_headers
def parse_from_wire
def parse_version
def persistent

Public Attributes

 body
 headers
 version

Static Public Attributes

string software_name = "ISC RPKI library"

Detailed Description

Virtual class representing of one HTTP message.

Definition at line 125 of file http.py.


Constructor & Destructor Documentation

def rpki::http::http_message::__init__ (   self,
  version = None,
  body = None,
  headers = None 
)

Definition at line 132 of file http.py.


Member Function Documentation

def rpki::http::http_message::__str__ (   self)

Definition at line 190 of file http.py.

References format().

Here is the call graph for this function:

def rpki::http::http_message::format (   self)
Format an outgoing HTTP message.

Definition at line 175 of file http.py.

References body, rpki::http::http_request::format_first_line(), rpki::http::http_response::format_first_line(), and headers.

Referenced by __str__().

Here is the call graph for this function:

Here is the caller graph for this function:

def rpki::http::http_message::normalize_headers (   self,
  headers = None 
)
Clean up (some of) the horrible messes that HTTP allows in its
headers.

Definition at line 138 of file http.py.

References headers.

Referenced by parse_from_wire().

Here is the caller graph for this function:

def rpki::http::http_message::parse_from_wire (   cls,
  headers 
)
Parse and normalize an incoming HTTP message.

Definition at line 161 of file http.py.

References normalize_headers(), rpki::http::http_request::parse_first_line(), and rpki::http::http_response::parse_first_line().

Here is the call graph for this function:

def rpki::http::http_message::parse_version (   self,
  version 
)
Parse HTTP version, raise an exception if we can't.

Definition at line 193 of file http.py.

References version.

Referenced by rpki::http::http_request::parse_first_line(), and rpki::http::http_response::parse_first_line().

Here is the caller graph for this function:

def rpki::http::http_message::persistent (   self)
Figure out whether this HTTP message encourages a persistent connection.

Definition at line 202 of file http.py.

References version.


Member Data Documentation

Definition at line 132 of file http.py.

Referenced by format().

Definition at line 132 of file http.py.

Referenced by format(), rpki::http::http_server::handle_message(), and normalize_headers().

string rpki::http::http_message::software_name = "ISC RPKI library" [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties