You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document more BaseHTTPRequestHandler attributes #67598
[Padding to avoid Error: 'utf8' codec can't decode bytes in position 189-190: invalid continuation byte]
This is a patch to document two attributes of http.server.BaseHTTPRequestHandler: “close_connection” and “requestline”. Normally these are set by the handle_one_request() method, but when overriding that method, you need to know to set these attributes.
Posting patch v3. It is based on Demian’s suggested wording for the requestline attribute, but adjusted to match the other entries, and to mention the empty string.
demianbrecht commented on Feb 17, 2015
demianbrechtmannequin
Mannequin
More actions
LGTM
demianbrecht commented on Feb 17, 2015
demianbrechtmannequin
Mannequin
More actions
Added Library component as there are a few newly added tests as well though and cosmetic changes were made to server.py.
New changeset f9ff2a5bbbe2 by Benjamin Peterson in branch '3.4':
document the requestline and close_connection attributes, use real booleans, and add tests (closes bpo-23410) https://hg.python.org/cpython/rev/f9ff2a5bbbe2
Activity
vadmium commentedon Feb 8, 2015
[Padding to avoid Error: 'utf8' codec can't decode bytes in position 189-190: invalid continuation byte]
This is a patch to document two attributes of http.server.BaseHTTPRequestHandler: “close_connection” and “requestline”. Normally these are set by the handle_one_request() method, but when overriding that method, you need to know to set these attributes.
demianbrecht commentedon Feb 14, 2015
Minor comment in Rietveld, otherwise LGTM.
vadmium commentedon Feb 15, 2015
Posting another patch which hopefully explains the “requestline” attribute a bit better. Let me know if you have any ideas for better wording.
vadmium commentedon Feb 17, 2015
Posting patch v3. It is based on Demian’s suggested wording for the requestline attribute, but adjusted to match the other entries, and to mention the empty string.
demianbrecht commentedon Feb 17, 2015
LGTM
demianbrecht commentedon Feb 17, 2015
Added Library component as there are a few newly added tests as well though and cosmetic changes were made to server.py.
python-dev commentedon Feb 18, 2015
New changeset f9ff2a5bbbe2 by Benjamin Peterson in branch '3.4':
document the requestline and close_connection attributes, use real booleans, and add tests (closes bpo-23410)
https://hg.python.org/cpython/rev/f9ff2a5bbbe2
New changeset 6e3e252cf047 by Benjamin Peterson in branch 'default':
merge 3.4 (bpo-23410)
https://hg.python.org/cpython/rev/6e3e252cf047