class documentation

class twisted.web.client._FakeUrllib2Request: (source)

View In Hierarchy

A fake urllib2.Request object for cookielib to work with.

See Alsohttp://docs.python.org/library/urllib2.html#request-objects
Present Since11.1
Instance Variable uri Request URI.
Instance Variable headers Request headers.
Instance Variable type The scheme of the URI.
Instance Variable host The host[:port] of the URI.
Method __init__ Create a fake Urllib2 request.
Instance Variable origin_req_host Undocumented
Instance Variable unverifiable Undocumented
Method has_header Undocumented
Method add_unredirected_header Undocumented
Method get_full_url Undocumented
Method get_header Undocumented
Method get_host Undocumented
Method get_type Undocumented
Method is_unverifiable Undocumented
Request URI.
(type: native str)
headers = (source)
Request headers.
(type: twisted.web.http_headers.Headers)
type = (source)
The scheme of the URI.
(type: native str)
host = (source)
The host[:port] of the URI.
(type: native str)
def __init__(self, uri): (source)

Create a fake Urllib2 request.

ParametersuriRequest URI. (type: bytes)
origin_req_host = (source)

Undocumented

unverifiable = (source)

Undocumented

def has_header(self, header): (source)

Undocumented

def add_unredirected_header(self, name, value): (source)

Undocumented

def get_full_url(self): (source)

Undocumented

def get_header(self, name, default=None): (source)

Undocumented

def get_host(self): (source)

Undocumented

def get_type(self): (source)

Undocumented

def is_unverifiable(self): (source)

Undocumented

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.