Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9e30fbac
Commit
9e30fbac
authored
Mar 29, 2019
by
Julien Palard
Committed by
Carol Willing
Mar 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-36064: Clarify allowed data types for urllib.request.Request. (GH-11990)
parent
081158e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/library/urllib.request.rst
Doc/library/urllib.request.rst
+2
-2
No files found.
Doc/library/urllib.request.rst
View file @
9e30fbac
...
...
@@ -192,8 +192,8 @@ The following classes are provided:
*data* must be an object specifying additional data to send to the
server, or ``None`` if no such data is needed. Currently HTTP
requests are the only ones that use *data*. The supported object
types include bytes, file-like objects, and iterables
. If no
``Content-Length`` nor ``Transfer-Encoding`` header field
types include bytes, file-like objects, and iterables
of bytes-like objects.
If no
``Content-Length`` nor ``Transfer-Encoding`` header field
has been provided, :class:`HTTPHandler` will set these headers according
to the type of *data*. ``Content-Length`` will be used to send
bytes objects, while ``Transfer-Encoding: chunked`` as specified in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment