PyDocs

Nav

Internet Protocols and Support

HTTPPasswordMgrWithPriorAuth

urllib.request

class · Added in 3.5 (source) not WASI
A variant of HTTPPasswordMgrWithDefaultRealm that also has a database of uri -> is_authenticated mappings. Can be used by a BasicAuth handler to determine when to send authentication credentials immediately instead of waiting for a 401 response first.
Members of HTTPPasswordMgrWithPriorAuth

a

add_password
realm, uri, user, passwd are as for HTTPPasswordMgr.add_password().

f

find_user_password
Same as for HTTPPasswordMgrWithDefaultRealm objects

i

is_authenticated
Returns the current state of the is_authenticated flag for the given URI.

u

update_authenticated
Update the is_authenticated flag for the given uri or list of URIs.
0 Examples
No examples for urllib.request/HTTPPasswordMgrWithPriorAuth.
See Also
No see-alsos for urllib.request/HTTPPasswordMgrWithPriorAuth
0 Notes
No notes for HTTPPasswordMgrWithPriorAuth