App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
httplib.HTTPConnection Class Reference
Inheritance diagram for httplib.HTTPConnection:
httplib.HTTPSConnection httplib.HTTPSConnection

Public Member Functions

def __init__
 
def set_tunnel
 
def set_debuglevel
 
def connect
 
def close
 
def send
 
def putrequest
 
def putheader
 
def endheaders
 
def request
 
def getresponse
 
def __init__
 
def set_tunnel
 
def set_debuglevel
 
def connect
 
def close
 
def send
 
def putrequest
 
def putheader
 
def endheaders
 
def request
 
def getresponse
 

Public Attributes

 host
 
 port
 
 timeout
 
 headers
 
 source_address
 
 sock
 
 strict
 
 debuglevel
 

Static Public Attributes

 response_class = HTTPResponse
 
 default_port = HTTP_PORT
 
int auto_open = 1
 
int debuglevel = 0
 
int strict = 0
 

Member Function Documentation

def httplib.HTTPConnection.close (   self)
Close the connection to the HTTP server.

App Engine Note: This method is a no-op.
def httplib.HTTPConnection.close (   self)
Close the connection to the HTTP server.
def httplib.HTTPConnection.connect (   self)
Connect to the host and port specified in __init__.

App Engine Note: This method is a no-op.
def httplib.HTTPConnection.connect (   self)
Connect to the host and port specified in __init__.
def httplib.HTTPConnection.endheaders (   self,
  message_body = None 
)
Indicate that the last header line has been sent to the server.

This method sends the request to the server.  The optional
message_body argument can be used to pass message body
associated with the request.  The message body will be sent in
the same packet as the message headers if possible.  The
message_body should be a string.
def httplib.HTTPConnection.endheaders (   self,
  message_body = None 
)
Indicate that the last header line has been sent to the server.

This method sends the request to the server.  The optional
message_body argument can be used to pass a message body
associated with the request.  The message body will be sent in
the same packet as the message headers if it is string, otherwise it is
sent as a separate packet.
def httplib.HTTPConnection.getresponse (   self,
  buffering = False 
)
Get the response from the server.

App Engine Note: buffering is ignored.
def httplib.HTTPConnection.putheader (   self,
  header,
  values 
)
Send a request header line to the server.

For example: h.putheader('Accept', 'text/html')
def httplib.HTTPConnection.putheader (   self,
  header,
  values 
)
Send a request header line to the server.

For example: h.putheader('Accept', 'text/html')
def httplib.HTTPConnection.putrequest (   self,
  method,
  url,
  skip_host = 0,
  skip_accept_encoding = 0 
)
Send a request to the server.

`method' specifies an HTTP request method, e.g. 'GET'.
`url' specifies the object being requested, e.g. '/index.html'.
`skip_host' if True does not add automatically a 'Host:' header
`skip_accept_encoding' if True does not add automatically an
   'Accept-Encoding:' header

App Engine Note: `skip_host' and `skip_accept_encoding' are not honored by
the urlfetch service.
def httplib.HTTPConnection.putrequest (   self,
  method,
  url,
  skip_host = 0,
  skip_accept_encoding = 0 
)
Send a request to the server.

`method' specifies an HTTP request method, e.g. 'GET'.
`url' specifies the object being requested, e.g. '/index.html'.
`skip_host' if True does not add automatically a 'Host:' header
`skip_accept_encoding' if True does not add automatically an
   'Accept-Encoding:' header
def httplib.HTTPConnection.request (   self,
  method,
  url,
  body = None,
  headers = None 
)
Send a complete request to the server.
def httplib.HTTPConnection.request (   self,
  method,
  url,
  body = None,
  headers = {} 
)
Send a complete request to the server.
def httplib.HTTPConnection.send (   self,
  data 
)
Send `data' to the server.
def httplib.HTTPConnection.send (   self,
  data 
)
Send `data' to the server.
def httplib.HTTPConnection.set_tunnel (   self,
  host,
  port = None,
  headers = None 
)
Sets up the host and the port for the HTTP CONNECT Tunnelling.

The headers argument should be a mapping of extra HTTP headers
to send with the CONNECT request.

App Engine Note: This method is not supported.
def httplib.HTTPConnection.set_tunnel (   self,
  host,
  port = None,
  headers = None 
)
Sets up the host and the port for the HTTP CONNECT Tunnelling.

The headers argument should be a mapping of extra HTTP headers
to send with the CONNECT request.

The documentation for this class was generated from the following file: