rpki.https.http_client Class Reference

Inherits rpki::https::http_stream.

Collaboration diagram for rpki.https.http_client:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def handle_close
def handle_connect
def handle_error
def handle_message
def handle_no_content_length
def handle_timeout
def send_request
def set_state
def start
def tls_connect

Public Attributes

 af
 cert
 expect_close
 hostport
 key
 queue
 retry_read
 retry_write
 state
 ta
 tls

Static Public Attributes

 parse_type = http_response
 Stream parser should look for incoming HTTP response messages.
 timeout = default_client_timeout
 Use the default client timeout value set in the module header.

Detailed Description

HTTP(S) client stream.

Definition at line 759 of file https.py.


Member Function Documentation

def rpki.https.http_client.__init__ (   self,
  queue,
  hostport,
  cert = None,
  key = None,
  ta = (),
  af = supported_address_families[0] 
)

Definition at line 772 of file https.py.

def rpki.https.http_client.handle_close (   self  ) 
Asyncore signaled connection close.  If we were waiting for that
to find the end of a response message, process the resulting
message now; if we were waiting for the response to a request we
sent, signal the error.

Reimplemented from rpki.https.http_stream.

Definition at line 892 of file https.py.

def rpki.https.http_client.handle_connect (   self  ) 
Asyncore says socket has connected, configure TLS junk.

Definition at line 797 of file https.py.

def rpki.https.http_client.handle_error (   self  ) 
Asyncore says something threw an exception.  Log it, then shut
down the connection and pass back the exception.

Reimplemented from rpki.https.http_stream.

Definition at line 918 of file https.py.

def rpki.https.http_client.handle_message (   self  ) 
Handle incoming HTTP response message.  Make sure we're in a state
where we expect to see such a message (and allow the mysterious
empty messages that Apache sends during connection close, no idea
what that is supposed to be about).  If everybody agrees that the
connection should stay open, put it into an idle state; otherwise,
arrange for the stream to shut down.

Definition at line 856 of file https.py.

def rpki.https.http_client.handle_no_content_length (   self  ) 
Handle response message that used neither chunking nor a
Content-Length header (that is: this message will be the last one
in this server stream).  In this case we want to read until we
reach the end of the data stream.

Definition at line 836 of file https.py.

def rpki.https.http_client.handle_timeout (   self  ) 
Connection idle timer has expired.  If we weren't idle, log that
something bad has happened, then shut down the connection in any
case.

Reimplemented from rpki.https.http_stream.

Definition at line 907 of file https.py.

def rpki.https.http_client.send_request (   self,
  msg 
)
Queue up request message and kickstart connection.

Definition at line 845 of file https.py.

def rpki.https.http_client.set_state (   self,
  state 
)
Set HTTP client connection state.

Definition at line 829 of file https.py.

def rpki.https.http_client.start (   self  ) 
Create socket and request a connection.

Definition at line 785 of file https.py.

def rpki.https.http_client.tls_connect (   self  ) 
Initialize client side of TLS.

Definition at line 814 of file https.py.


Member Data Documentation

Definition at line 783 of file https.py.

Definition at line 780 of file https.py.

Definition at line 779 of file https.py.

Definition at line 777 of file https.py.

Definition at line 781 of file https.py.

Stream parser should look for incoming HTTP response messages.

Definition at line 766 of file https.py.

Definition at line 776 of file https.py.

Reimplemented from rpki.https.http_stream.

Definition at line 821 of file https.py.

Reimplemented from rpki.https.http_stream.

Definition at line 823 of file https.py.

Definition at line 778 of file https.py.

Definition at line 782 of file https.py.

Use the default client timeout value set in the module header.

Definition at line 770 of file https.py.

Reimplemented from rpki.https.http_stream.

Definition at line 802 of file https.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables
Generated on Wed May 12 19:43:49 2010 for RPKI Engine by  doxygen 1.6.3