b.t.h._.ProxyAuthHandler(AbstractAuthHandler) : class documentation

Part of bzrlib.transport.http._urllib2_wrappers View In Hierarchy

Known subclasses: bzrlib.transport.http._urllib2_wrappers.ProxyBasicAuthHandler, bzrlib.transport.http._urllib2_wrappers.ProxyDigestAuthHandler, bzrlib.transport.http._urllib2_wrappers.ProxyNegotiateAuthHandler

Custom proxy authentication handler.

Send the authentication preventively to avoid the roundtrip associated with the 407 error and keep the revelant info in the proxy_auth request attribute..

Method get_auth Get the auth params from the request
Method set_auth Set the auth params for the request
Method build_password_prompt Undocumented
Method build_username_prompt Undocumented
Method http_error_407 Undocumented

Inherited from AbstractAuthHandler:

Method __init__ Undocumented
Method update_auth Update a value in auth marking the auth as modified if needed
Method auth_required Retry the request if the auth scheme is ours.
Method add_auth_header Add the authentication header to the request
Method auth_match Check that we are able to handle that authentication scheme.
Method build_auth_header Build the value of the header used to authenticate.
Method auth_successful The authentification was successful for the request.
Method get_user_password Ask user for a password if none is already available.
Method http_request Insert an authentication header if information is available
Method _parse_auth_header Parse the authentication header.
Method _build_password_prompt Build a prompt taking the protocol used into account.
Method _build_username_prompt Build a prompt taking the protocol used into account.
def get_auth(self, request):
Get the auth params from the request
def set_auth(self, request, auth):
Set the auth params for the request
def build_password_prompt(self, auth):
Undocumented
def build_username_prompt(self, auth):
Undocumented
def http_error_407(self, req, fp, code, msg, headers):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.