This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients docs@python, jugglinmike, martin.panter, r.david.murray
Date 2017-04-27.12:15:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493295337.05.0.246669904613.issue30160@psf.upfronthosting.co.za>
In-reply-to
Content
The “Proper adherence” sentence has always bothered me. Why does “wfile” have to adhere, but not other other APIs (rfile, send_header, etc)? I wonder if the sentence is useful at all. (Of course you have to use HTTP to operate with HTTP clients.)

Perhaps it was intended to say that socket-level HTTP is written to wfile, that it is up to the caller to ensure the encoding, content length, etc is consistent with the HTTP header, and/or the caller has to supply the header (either direct through wfile or via send_header etc). A plausable alternative would be a higher-level file object like the request body in “http.client”, where encoding and content length is handled by the library.
History
Date User Action Args
2017-04-27 12:15:37martin.pantersetrecipients: + martin.panter, r.david.murray, docs@python, jugglinmike
2017-04-27 12:15:37martin.pantersetmessageid: <1493295337.05.0.246669904613.issue30160@psf.upfronthosting.co.za>
2017-04-27 12:15:37martin.panterlinkissue30160 messages
2017-04-27 12:15:36martin.pantercreate