Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
2.3.901 (2023-11-26)
Content-Type: text/plain; charset=utf-8
for safety, unlessyou specified a
Content-Type
header yourself. Thecharset
parameter will always be set toutf-8
.It is recommended that you pass
bytes
instead of a plain string. If a conflicting charset has been set thatdoes not refer to utf-8, a warning will be raised.
urlopen
, andrequest
namedon_upload_body
that enables you to trackbody upload progress for a single request. It takes 4 positional arguments, namely:
(total_sent: int, total_to_be_sent: int | None, is_completed: bool, any_error: bool)
total_to_be_sent may be set to None if we're unable to know in advance the total size (blind iterator/generator).
ProtocolError
was raised instead of expectedIncompleteRead
exception.PoolManager
.If the
PoolManager
is instantiated withnum_pools=10
, each (managed) subsequent pool will havemaxsize=10
.Now a warning will be fired if you reach the maximum capacity of stored saturated multiplexed connections.