PyDocs

Nav

Internet Protocols and Support

OpenerDirector.add_handler

  • OpenerDirector.add_handler(handler)
handler should be an instance of BaseHandler. The following methods are searched, and added to the possible chains (note that HTTP errors are a special case). Note that, in the following, protocol should be replaced with the actual protocol to handle, for example http_response() would be the HTTP protocol response handler. Also type should be replaced with the actual HTTP code, for example http_error_404() would handle HTTP 404 errors.
0 Examples
No examples for urllib.request/OpenerDirector.add_handler.
See Also
No see-alsos for urllib.request/OpenerDirector.add_handler
0 Notes
No notes for OpenerDirector.add_handler