System.Net.HttpRequestHeader enum contains a number of HTTP headers, but there’s no Location header. Is there any system enum conatining this?
I am aware that I can just make a constant inside my application (that’s what I did and it works fine) – I just wanted to be sure I did the best thing possible.
BTW, if it is not present in .NET libraries – does anyone know why? This header must be quite often used for RESTful services utilizing HTTP 201.
The description of
HttpRequestHeaderis:(Emphasis added).
Locationisn’t valid in a request, I believe, but only in a response. So we findHttpResponseHeader:(Emphasis added)