[New-bugs-announce] [issue28010] http.client.HTTPConnection.putrequest incorrect arguments
p0lm
report at bugs.python.org
Wed Sep 7 19:37:10 EDT 2016
New submission from p0lm:
Currently the arguments for HTTPConnection.putrequest in the http.client documentation are listed as "request, selector, skip_host=False, skip_accept_encoding=False". This does not reflect the correct arguments:
>>> from http.client import HTTPConnection
>>> help(HTTPConnection.putrequest)
putrequest(self, method, url, skip_host=0, skip_accept_encoding=0)
Send a request to the server.
`method' specifies an HTTP request method, e.g. 'GET'.
`url' specifies the object being requested, e.g. '/index.html'.
`skip_host' if True does not add automatically a 'Host:' header
`skip_accept_encoding' if True does not add automatically an
'Accept-Encoding:' header
Fix:
Change `request` and `selector` to `method` and `url` respectively.
----------
assignee: docs at python
components: Documentation
messages: 274913
nosy: docs at python, p0lm
priority: normal
severity: normal
status: open
title: http.client.HTTPConnection.putrequest incorrect arguments
type: enhancement
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28010>
_______________________________________
More information about the New-bugs-announce
mailing list