PyDocs

Nav

Internet Protocols and Support

BaseHandler

urllib.request

class (source) not WASI
This is the base class for all registered handlers — and handles only the simple mechanics of registration.
Members of BaseHandler

a

add_parent
Add a director as parent.

c

close
Remove any parents.

d

default_open
This method is not defined in BaseHandler, but subclasses should define it if they want to catch all URLs.

h

http_error_default
This method is not defined in BaseHandler, but subclasses should override it if they intend to provide a catch-all for otherwise unhandled HTTP errors.

p

parent
A valid OpenerDirector, which can be used to open using a different protocol, or handle errors.

u

unknown_open
This method is not defined in BaseHandler, but subclasses should define it if they want to catch all URLs with no specific registered handler to open it.
0 Examples
No examples for urllib.request/BaseHandler.
See Also
No see-alsos for urllib.request/BaseHandler
0 Notes
No notes for BaseHandler