On Sun, Jun 12, 2016 at 11:11 AM, Vinícius dos Santos Oliveira
<
vini.i...@gmail.com> wrote:
> I think this is a polemic change, but I'd agree with you as a solution to
> "what to do when the text is not on map?" is given.
>
> What do you think about giving the string "REASON PHRASE UNKNOWN"?
For sending response messages, the serialization algorithm will simply
insert the standard reason phrase text based on the status code. For
receiving response messages, the parser will just discard the reason
phrase text. It will not be accessible to callers. These changes are
reasonable based on the letter of rfc7230.
However, this is rather controversial and some clients might care
about the reason phrase, since the language in rfc7230 is a "SHOULD
NOT" rather than a "MUST NOT." Based on this interpretation, I don't
feel strongly about removing reason phrase support but it is an option
to consider in the future if we discover significant benefits to doing
so.