forked from urllib3/urllib3
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added support for async iterable yielding either bytes or str when passing a body into your requests. - Added dummy module (e.g. http2 and emscriptem) like upstream without serving any of them. Those modules won't be served and are empty as we diverged since. - Added a better error message for http3 handshake failure to help out users figuring out what is happening. - Added official support for Python 3.13
- Loading branch information
Showing
18 changed files
with
209 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ authors = [ | |
{name = "Andrey Petrov", email = "[email protected]"} | ||
] | ||
maintainers = [ | ||
{name = "Ahmed R. TAHRI", email="ahmed.tahri@cloudnursery.dev"}, | ||
{name = "Ahmed R. TAHRI", email="tahri[email protected]"}, | ||
] | ||
classifiers = [ | ||
"Environment :: Web Environment", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This file is protected via CODEOWNERS | ||
from __future__ import annotations | ||
|
||
__version__ = "2.8.901" | ||
__version__ = "2.8.902" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Dummy file to match upstream modules | ||
# without actually serving them. | ||
# urllib3-future diverged from urllib3. | ||
# only the top-level (public API) are guaranteed to be compatible. | ||
# in-fact urllib3-future propose a better way to migrate/transition toward | ||
# newer protocols. | ||
|
||
from __future__ import annotations | ||
|
||
import warnings | ||
|
||
|
||
def inject_into_urllib3() -> None: | ||
warnings.warn( | ||
"urllib3-future do not have a emscripten module as it is irrelevant to urllib3 nature. " | ||
"wasm support will be brought in Niquests (replacement for Requests). " | ||
"One does not simply ship an addon that essentially kills 90% of its other features and alter the 10 " | ||
"remaining percents.", | ||
UserWarning, | ||
) | ||
|
||
|
||
def extract_from_urllib3() -> None: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Dummy file to match upstream modules | ||
# without actually serving them. | ||
# urllib3-future diverged from urllib3. | ||
# only the top-level (public API) are guaranteed to be compatible. | ||
# in-fact urllib3-future propose a better way to migrate/transition toward | ||
# newer protocols. | ||
|
||
from __future__ import annotations | ||
|
||
import warnings | ||
|
||
|
||
def inject_into_urllib3() -> None: | ||
warnings.warn( | ||
"urllib3-future do not propose the http2 module as it is useless to us. " | ||
"enjoy all three protocols. urllib3-future just works out of the box with all protocols.", | ||
UserWarning, | ||
) | ||
|
||
|
||
def extract_from_urllib3() -> None: | ||
pass |
Oops, something went wrong.