Files
typeshed/stdlib/2
Michael Brandt 1442cc02bf Add stubs for HTTP Handler classes in py2/urllib2 & py3/urllib.request (#2710)
* HTTP Handler class annotations for py2/urllib2 & py3/urllib.request

Add full annotations for the following classes:

* Python 2:

    * `urllib2.AbstractHTTPHandler`
    * `urllib2.HTTPHandler`
    * `urllib2.HTTPsHandler`

* Python 3:

    * `urllib.request.AbstractHTTPHandler`
    * `urllib.request.HTTPHandler`
    * `urllib.request.HTTPsHandler`

This information is largely undocumented, and was obtained by directly examining
the Python source code:

* Python 2 (v2.7.15) - https://github.com/python/cpython/blob/v2.7.15/Lib/urllib2.py#L1115-L1243
* Python 3 (v3.7.1) - https://github.com/python/cpython/blob/v3.7.1/Lib/urllib/request.py#L1224-L1364

`urllib2.AbstractHTTPHandler.do_open` takes as a parameter either
`HTTPConnection` or `HTTPSConnection`--one of the classes, not an instance of
either--and constructs an object using only a few of the parameters that either
constructor could use. `HTTPConnectionProtocol` in `stdlib/2/httplib.pyi`
follows a similar patten to `HTTPConnectionProtocol` added to
`stdlib/3/http/client.pyi` in pull request #2582 to describe the type of the
`http_class` that is passed to `do_open`.
2019-02-11 11:25:02 +01:00
..
2016-10-26 16:24:49 -07:00
2016-10-26 16:24:49 -07:00
2016-10-26 16:24:49 -07:00
2018-11-23 09:51:44 -08:00
2018-10-24 07:20:53 -07:00
2016-12-19 21:52:56 -08:00
2016-10-26 16:24:49 -07:00
2016-10-26 16:24:49 -07:00
2016-10-26 16:24:49 -07:00
2016-10-26 16:24:49 -07:00
2016-12-19 22:09:35 -08:00
2018-10-24 07:20:53 -07:00
2016-10-26 16:24:49 -07:00
2017-06-02 21:05:21 -07:00
2017-04-02 15:01:17 -07:00
2016-12-19 21:52:56 -08:00
2016-10-30 14:51:52 -07:00
2018-10-24 07:20:53 -07:00
2018-10-24 07:20:53 -07:00
2018-10-24 07:20:53 -07:00
2017-04-02 15:01:17 -07:00
2017-08-02 08:32:10 -07:00
2017-04-30 14:16:30 -07:00
2016-10-26 16:24:49 -07:00
2017-01-31 09:25:45 -08:00
2016-12-19 22:09:35 -08:00
2018-10-24 07:20:53 -07:00
2017-01-31 14:56:48 -08:00
2016-10-26 16:24:49 -07:00
2017-04-24 18:53:47 -07:00
2016-12-19 21:52:56 -08:00
2017-11-13 06:56:24 -08:00
2016-12-19 22:09:35 -08:00
2017-05-31 12:07:21 -07:00
2016-10-26 16:24:49 -07:00
2017-04-21 17:52:48 -07:00
2017-03-19 09:43:40 -07:00
2016-12-19 23:53:19 -08:00
2018-10-24 07:20:53 -07:00
2018-10-24 07:20:53 -07:00
2018-11-23 09:51:44 -08:00
2018-11-23 09:51:44 -08:00