Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#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)

http_status_text.patch (746 bytes ) - added by Anler Hp 11 years ago.

Download all attachments as: .zip

Change History (4)

by Anler Hp, 11 years ago

Attachment: http_status_text.patch added

comment:1 by Aymeric Augustin, 11 years ago

Duplicate of #12747.

If you have a practical use case — "it should be possible!" doesn't count as "practical" — please answer this comment.

comment:2 by Baptiste Mispelon, 11 years ago

Resolution: duplicate
Status: newclosed

comment:3 by Anler Hp, 11 years ago

Comment added.

Note: See TracTickets for help on using tickets.
Back to Top