Back to index

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

List of all members.

Public Member Functions

def http_response
def add_parent
def close
def __lt__

Public Attributes

 parent

Static Public Attributes

int handler_order = 1000
 https_response = http_response

Detailed Description

Process HTTP error responses.

Definition at line 476 of file request.py.


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.HTTPErrorProcessor.http_response (   self,
  request,
  response 
)

Definition at line 480 of file request.py.

00480 
00481     def http_response(self, request, response):
00482         code, msg, hdrs = response.code, response.msg, response.info()
00483 
00484         # According to RFC 2616, "2xx" code indicates that the client's
00485         # request was successfully received, understood, and accepted.
00486         if not (200 <= code < 300):
00487             response = self.parent.error(
00488                 'http', request, response, code, msg, hdrs)
00489 
00490         return response


Member Data Documentation

Reimplemented from urllib.request.BaseHandler.

Definition at line 478 of file request.py.

Definition at line 491 of file request.py.

Definition at line 461 of file request.py.


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