class documentation

Undocumented

Method test_add_basic_auth add_auth() wraps the given agent with one that adds an ``Authorization: Basic ...`` HTTP header that contains the given credentials.
Method test_add_basic_auth_bytes Basic auth can be passed as `bytes`, allowing the user full control over the encoding.
Method test_add_basic_auth_huge The Authorization header doesn't include linebreaks, even if the credentials are so long that Python's base64 implementation inserts them.
Method test_add_basic_auth_utf8 Basic auth username and passwords given as `str` are encoded as UTF-8.
Method test_add_unknown_auth add_auth() raises UnknownAuthConfig when given anything other than a tuple.
def test_add_basic_auth(self): (source)

add_auth() wraps the given agent with one that adds an ``Authorization: Basic ...`` HTTP header that contains the given credentials.

def test_add_basic_auth_bytes(self): (source)

Basic auth can be passed as `bytes`, allowing the user full control over the encoding.

def test_add_basic_auth_huge(self): (source)

The Authorization header doesn't include linebreaks, even if the credentials are so long that Python's base64 implementation inserts them.

def test_add_basic_auth_utf8(self): (source)

Basic auth username and passwords given as `str` are encoded as UTF-8. https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication#Character_encoding_of_HTTP_authentication

def test_add_unknown_auth(self): (source)

add_auth() raises UnknownAuthConfig when given anything other than a tuple.