Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0215d09

Browse files
committed
Fix closes Issue12478 - HTTPErrorProcess 's methods are http_response and https_response.
1 parent ed270fa commit 0215d09

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Doc/library/urllib.request.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ UnknownHandler Objects
921921
HTTPErrorProcessor Objects
922922
--------------------------
923923

924-
.. method:: HTTPErrorProcessor.unknown_open()
924+
.. method:: HTTPErrorProcessor.http_response()
925925

926926
Process HTTP error responses.
927927

@@ -933,6 +933,13 @@ HTTPErrorProcessor Objects
933933
:exc:`HTTPError` if no other handler handles the error.
934934

935935

936+
.. method:: HTTPErrorProcessor.https_response()
937+
938+
Process HTTPS error responses.
939+
940+
The behavior is same as :meth:`http_response`.
941+
942+
936943
.. _urllib-request-examples:
937944

938945
Examples

0 commit comments

Comments
 (0)