BasicAuthentication

* Basic authentication. * Adds Authorization: Basic header to request * Example: * --- * import requests; * void main() { * rq = Request(); * rq.authenticator = new BasicAuthentication("user", "passwd"); * rs = rq.get("http://httpbin.org/basic-auth/user/passwd"); * } * ---

Constructors

this
this(string username, string password, string[] domains)

Constructor.

Members

Functions

authHeaders
string[string] authHeaders(string domain)

create Basic Auth header

password
string password()

return user password

userName
string userName()

returns username

Inherited Members

From Auth

authHeaders
string[string] authHeaders(string domain)
Undocumented in source.
userName
string userName()
Undocumented in source.
password
string password()
Undocumented in source.

Meta