This repository has been archived by the owner on Nov 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 193
Add ReasonPhrase to HttpResponse #395
Comments
No, it's useless &/ obsolete. The servers will set the reason phrase based on the status code. The application should only ever consider setting it if they are defining custom status codes, and even then it's optional. Most users just set it to the default values anyways. HTTP/2 has removed this field. |
muratg
changed the title
Add ReasonPhrash to HttpResponse
Add ReasonPhrase to HttpResponse
Sep 11, 2015
@davidfowl Why do we need this? |
If we think nobody needs to use it I'm ok punting. As I said:
Is ridiculous. We pretty much expose everything else on the IHttpResponseFeature. |
The features are complete / raw protocol, where HttpContext is about convenience. It is part of the protocol, but we have reasons for not making it convenient. |
Cool. Closing this out until somebody asks for it. |
1 task
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Because this code
response.HttpContext.Features.Get<IHttpResponseFeature>().ReasonPhrase = null;
is ridiculousThe text was updated successfully, but these errors were encountered: