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).
-
protocol_open()— signal that the handler knows how to open protocol URLs. -
http_error_type()— signal that the handler knows how to handle HTTP errors with HTTP error code type. -
protocol_error()— signal that the handler knows how to handle errors from (non-http) protocol. -
protocol_request()— signal that the handler knows how to pre-process protocol requests. -
protocol_response()— signal that the handler knows how to post-process protocol responses.
Please login to continue.