Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
urllib.request.HTTPCookieProcessor Class Reference
Inheritance diagram for urllib.request.HTTPCookieProcessor:
Inheritance graph
[legend]
Collaboration diagram for urllib.request.HTTPCookieProcessor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def http_request
def http_response
def add_parent
def close
def __lt__

Public Attributes

 cookiejar
 parent

Static Public Attributes

 https_request = http_request
 https_response = http_response
int handler_order = 500

Detailed Description

Definition at line 1176 of file request.py.


Constructor & Destructor Documentation

def urllib.request.HTTPCookieProcessor.__init__ (   self,
  cookiejar = None 
)

Definition at line 1177 of file request.py.

01177 
01178     def __init__(self, cookiejar=None):
01179         import http.cookiejar
01180         if cookiejar is None:
01181             cookiejar = http.cookiejar.CookieJar()
01182         self.cookiejar = cookiejar

Here is the caller graph for this function:


Member Function Documentation

def urllib.request.BaseHandler.__lt__ (   self,
  other 
) [inherited]

Definition at line 467 of file request.py.

00467 
00468     def __lt__(self, other):
00469         if not hasattr(other, "handler_order"):
00470             # Try to preserve the old behavior of having custom classes
00471             # inserted after default ones (works only for custom user
00472             # classes which are not aware of handler_order).
00473             return True
00474         return self.handler_order < other.handler_order
00475 

def urllib.request.BaseHandler.add_parent (   self,
  parent 
) [inherited]

Definition at line 460 of file request.py.

00460 
00461     def add_parent(self, parent):
00462         self.parent = parent

def urllib.request.BaseHandler.close (   self) [inherited]

Definition at line 463 of file request.py.

00463 
00464     def close(self):
00465         # Only exists for backwards compatibility
00466         pass

Here is the caller graph for this function:

def urllib.request.HTTPCookieProcessor.http_request (   self,
  request 
)

Definition at line 1183 of file request.py.

01183 
01184     def http_request(self, request):
01185         self.cookiejar.add_cookie_header(request)
01186         return request

def urllib.request.HTTPCookieProcessor.http_response (   self,
  request,
  response 
)

Definition at line 1187 of file request.py.

01187 
01188     def http_response(self, request, response):
01189         self.cookiejar.extract_cookies(response, request)
01190         return response


Member Data Documentation

Definition at line 1181 of file request.py.

int urllib.request.BaseHandler.handler_order = 500 [static, inherited]

Definition at line 1191 of file request.py.

Definition at line 1192 of file request.py.

Definition at line 461 of file request.py.


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