Package suds :: Package transport :: Module https :: Class HttpAuthenticated
[hide private]
[frames] | no frames]

Class HttpAuthenticated

source code

     Transport --+    
                 |    
http.HttpTransport --+
                     |
                    HttpAuthenticated
Known Subclasses:

Provides basic http authentication that follows the RFC-2617 specification. As defined by specifications, credentials are provided to the server upon request (HTTP/1.0 401 Authorization Required) by the server only.

Instance Methods [hide private]
 
__init__(self, **kwargs)
Constructor.
source code
stream
open(self, request)
Open the url in the specified request.
source code
Reply
send(self, request)
Send soap message.
source code
 
addcredentials(self, request) source code
 
credentials(self) source code
[Handler,...]
u2handlers(self)
Get a collection of urllib handlers.
source code

Inherited from http.HttpTransport: __deepcopy__, addcookies, getcookies, u2open, u2opener, u2ver

Instance Variables [hide private]
  handler
The authentication handler.
  pm
The password manager.
Method Details [hide private]

__init__(self, **kwargs)
(Constructor)

source code 

Constructor.

Parameters:
  • kwargs - Keyword arguments.
    • proxy - An http proxy to be specified on requests. The proxy is defined as {protocol:proxy,}
      • type: dict
      • default: {}
    • timeout - Set the url open timeout (seconds).
      • type: float
      • default: 90
    • username - The username used for http authentication.
      • type: str
      • default: None
    • password - The password used for http authentication.
      • type: str
      • default: None
Overrides: Transport.__init__

open(self, request)

source code 

Open the url in the specified request.

Parameters:
  • request - A transport request.
Returns: stream
An input stream.
Raises:
Overrides: Transport.open
(inherited documentation)

send(self, request)

source code 

Send soap message. Implementations are expected to handle:

  • proxies
  • http headers
  • cookies
  • sending message
  • brokering exceptions into TransportError
Parameters:
  • request - A transport request.
Returns: Reply
The reply
Raises:
Overrides: Transport.send
(inherited documentation)

u2handlers(self)

source code 

Get a collection of urllib handlers.

Returns: [Handler,...]
A list of handlers to be installed in the opener.
Overrides: http.HttpTransport.u2handlers
(inherited documentation)