#20328 closed Cleanup/optimization (duplicate)
Add support to use a custom reason-phrase in response's status line
Reported by: | Anler Hp | Owned by: | nobody |
---|---|---|---|
Component: | HTTP handling | Version: | 1.5 |
Severity: | Normal | Keywords: | http response status line reason phrase |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
HTTP protocol uses the reason-phrase in the response's status line as a message meant solely for human consumption so is perfectly valid to change that phrase for whatever the api designer wants.
HttpResponse
class should allow users to change the reason-phrase through a status_text attribute for example.
Link to patch: Patch
Attachments (1)
Change History (4)
by , 12 years ago
Attachment: | http_status_text.patch added |
---|
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Duplicate of #12747.
If you have a practical use case — "it should be possible!" doesn't count as "practical" — please answer this comment.