Bera
42f7953e7f
[http.cookies] Fix wrong return type in BaseCookie.value_encode ( #15267 )
2026-01-23 12:39:16 +01:00
b9788213
ce2b37da45
[http.cookies] 'value', 'coded_value', and 'key' of Morsel can return None ( #15264 )
2026-01-12 16:56:26 +01:00
Semyon Moroz
a679bdc438
[stdlib] Deprecate keyfile, certfile and check_hostname parameters ( #15259 )
2026-01-11 23:31:03 +01:00
Semyon Moroz
9d40875925
[http.client] Update HTTPResponse.info ( #15248 )
2026-01-11 00:28:44 +01:00
Semyon Moroz
41c18afd59
[http.client] Deprecate HTTPResponse methods ( #15241 )
2026-01-09 17:23:41 +01:00
Guo Ci
b96b61efad
Add blocksize attribute to HTTPConnection class ( #15005 )
2025-11-09 21:01:50 +00:00
Semyon Moroz
5e0d6ee95e
[stdlib] Copy-edit deprecation messages ( #14614 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2025-08-21 12:12:00 +01:00
Semyon Moroz
85a787bba3
[stdlib] Mark constants as Final ( #14577 )
2025-08-15 13:19:03 +02:00
Semyon Moroz
9ce2a25b91
Bump http.server to 3.14 ( #13981 )
2025-05-11 13:56:08 +02:00
Sebastian Rittau
0eb44e574c
Clean up and fix email message types ( #13532 )
...
* Unify the `_MessageT` type var in `email._policybase`.
* Use explicit type arguments for `Message` type in `_MessageT` type var.
In particular, change bound from `Message[str, str]` to `Message[Any, Any]`.
* Change `__init__()` overloads of `Parser` and `BytesParser` to accept
`Message` objects that are not `Message[str, str]` if `_class` is not also given.
2025-05-05 11:59:51 -04:00
Sebastian Rittau
30b16c168d
Drop Python 3.8 branches ( #13776 )
2025-04-03 10:35:36 +02:00
Semyon Moroz
b733e57571
Deprecate CGIHTTPRequestHandler ( #13658 )
2025-03-18 11:35:20 +01:00
Avasam
24c78b9e0d
http.server.SimpleHTTPRequestHandler's directory param can be PathLike (#13477 )
2025-02-09 21:42:41 +00:00
Bartosz Sławecki
736db39315
Add missing http.client globals and make all of them literal ( #13255 )
2024-12-18 17:26:46 +01:00
Oleh Prypin
b2f68ec2fe
Use MaybeNone (alias to Any) when applicable ( #12855 )
2024-10-18 14:07:52 -07:00
Stephen Morton
f08d769f7c
remove unneeded Iterable base class from CookieJar ( #12812 )
2024-10-15 19:47:56 +02:00
Dima Tisnek
c47650323e
fix: correct headers= kwarg in HTTP[S]Connection ( #12704 )
2024-10-01 08:59:46 +02:00
Justin Su
02b05d67c4
Fix type for FileCookieJar.filename ( #12333 )
2024-07-15 14:30:32 +02:00
Shantanu
d9cf43c4c3
Mark pos-only __class_getitem__ args ( #11970 )
2024-05-18 23:27:51 +02:00
Shantanu
49512463c6
http: add py313 HTTPStatus aliases ( #11935 )
2024-05-18 19:24:44 +02:00
Ali Hamdan
b570af5c1c
stdlib: fix some enum definitions ( #11956 )
2024-05-18 13:03:10 +02:00
Sebastian Rittau
56db30e8eb
Make email.message.Message generic over the header type ( #11732 )
...
Co-authored-by: Avasam <samuel.06@hotmail.com >
2024-04-23 11:41:10 -04:00
Eric Traut
17f1c4628a
Add precise values for enum members where possible ( #11299 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
Co-authored-by: Alex Waygood <alex.waygood@gmail.com >
2024-04-22 15:10:59 +01:00
Andrew
6d9f28a7ca
http.serverBaseHTTPRequestHandler.date_time_string: timestamp is a float ( #11322 )
2024-01-27 12:29:24 +01:00
Sebastian Rittau
53a8193d64
Update typing_extensions imports in stdlib ( #11244 )
...
Co-authored-by: AlexWaygood <alex.waygood@gmail.com >
2024-01-05 08:15:19 -08:00
Sebastian Rittau
23604858a6
Remove Python 3.7 branches ( #11238 )
2024-01-05 11:39:39 +01:00
Avasam
cf6bafbaf2
override http.HTTPMessage methods to only use str for the header type ( #11114 )
2023-12-19 08:37:57 +01:00
Allison Karlitskaya
53d5ee5a78
stdlib: HTTPSConnection(port=) is int|None ( #11058 )
...
Fix an apparent typo in the type of this field.
Closes #11057
2023-11-22 17:20:33 +00:00
Tin Tvrtković
c8073493fc
http.HTTPConnection.putheader tweak ( #10978 )
2023-11-05 15:38:41 -08:00
Denis Laxalde
24712f66a9
Add SimpleHTTPRequestHandler's directory attribute ( #10788 )
2023-09-28 13:20:19 +02:00
Petter Friberg
c9bf034dd4
Make http.cookies.SimpleCookie non-generic ( #10701 )
2023-09-13 12:07:02 +02:00
Petter Friberg
d88398b923
Make value_decode and value_encode of BaseCookie return 2-tuple ( #10702 )
2023-09-13 09:21:25 +02:00
Alex Waygood
a570fb6ced
Fix various stubtest complaints on Python 3.12 ( #10691 )
2023-09-10 14:54:43 -07:00
James Braza
464b71c810
Added url: str to http.client.HTTPResponse ( #10497 )
2023-07-22 01:58:13 +01:00
Nikita Sobolev
8162faa934
Fix signature of http.client.HTTPSConnection for Python 3.12 ( #10392 )
2023-07-01 18:31:47 +01:00
Nikita Sobolev
0b98780c81
Add new http.HTTPStatus/__init__.pyi for Python3.12 ( #10296 )
2023-06-10 10:34:28 +01:00
Alex Waygood
dd2818a41d
Stdlib: add container default values ( #9909 )
2023-03-21 09:12:34 +01:00
Alex Waygood
21d7f7153b
[alt] typing: accept buffers in IO.write ( #9861 )
...
Co-authored-by: JelleZijlstra <jelle.zijlstra@gmail.com >
2023-03-15 00:42:10 -07:00
Alex Waygood
6ba28ae547
Remove unused type: ignore comments ( #9801 )
2023-02-23 12:59:50 -08:00
Alex Waygood
9ed39d8796
Use typing_extensions.Self in the stdlib ( #9694 )
2023-02-09 09:12:13 +00:00
Alex Waygood
33a62ae42d
Add more defaults to the stdlib ( #9606 )
...
Continuing work towards #8988 .
The first five commits were created using stubdefaulter on various Python versions; the following commits were all created manually by me to fix various problems. The main things this adds that weren't present in #9501 are:
- Defaults in Windows-only modules and Windows-only branches (because I'm running a Windows machine)
- Defaults in non-py311 branches
- Defaults for float parameters
- Defaults for overloads
2023-01-29 01:51:23 +00:00
Jelle Zijlstra
ddfaca3200
stdlib: add argument default values ( #9501 )
2023-01-18 09:37:34 +01:00
Jelle Zijlstra
f64807a468
socketserver: improve bytes handling ( #9096 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-01-12 16:46:20 +00:00
Ethan Furman
3aceb1abd5
Update SimpleHTTPRequestHandler for changes in 3.12 ( #9452 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-01-03 23:59:40 +00:00
Jelle Zijlstra
00483b63e6
http.client.HTTPConnection.request accepts str as the body ( #9322 )
...
See code around https://github.com/python/cpython/blob/ab02262cd0385a2fb5eb8a6ee3cedd4b4bb969f3/Lib/http/client.py#L1328
2022-12-02 10:49:33 -08:00
Alex Waygood
22c5afa2d2
http.server.SimpleHTTPRequestHandler: Fix version branching ( #9075 )
2022-11-03 11:17:50 +01:00
Jelle Zijlstra
6b702452b6
http: improve types ( #9055 )
2022-11-03 09:55:56 +01:00
Nikita Sobolev
0259068ad6
Remove duplicate definitions in sub-classes ( #8594 )
2022-08-26 17:10:55 +02:00
Alex Waygood
553700e355
Move some protocol definitions closer to their usage sites ( #8436 )
2022-07-29 06:26:27 -07:00
Nikita Sobolev
abd893abae
Type http.client.HTTPConnection.sock ( #8386 )
2022-07-26 11:07:54 +02:00