Peach :: Publishers :: http :: HttpDigestAuth :: Class HttpDigestAuth
[hide private]

Class HttpDigestAuth

source code


A simple HTTP publisher.

Instance Methods [hide private]
 
__init__(self, url, realm, username, password, headers=None, timeout=0.1) source code
 
stop(self)
Close connection if open.
source code
 
connect(self) source code
 
close(self)
Close current stream/connection.
source code
 
send(self, data)
Send data via sendall.
source code
string
receive(self, size=None)
Receive upto 10000 bytes of data.
source code

Inherited from publisher.Publisher: accept, call, property, start

Method Details [hide private]

__init__(self, url, realm, username, password, headers=None, timeout=0.1)
(Constructor)

source code 
Parameters:
  • host (string) - Remote host
  • port (number) - Remote port
  • timeout (number) - How long to wait for reponse

stop(self)

source code 

Close connection if open.

Overrides: publisher.Publisher.stop

close(self)

source code 

Close current stream/connection.

Overrides: publisher.Publisher.close
(inherited documentation)

send(self, data)

source code 

Send data via sendall.

Parameters:
  • data (string) - Data to send
Overrides: publisher.Publisher.send

receive(self, size=None)

source code 

Receive upto 10000 bytes of data.

Parameters:
  • size - Number of bytes to return
Returns: string
received data.
Overrides: publisher.Publisher.receive