You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.
I think it would be very useful to have typed properties for all the well-know request and response headers (Accept, Authorization, etc). Today is a simple IDictionary<string, IEnumerable for the request and a IDictionary<string, string> for the response (Which is wrong I think as you can have multiple values for an specific header. For example, Accept-Ranges).
I can contribute this as a patch if you are interested.
Thanks
Pablo.
The text was updated successfully, but these errors were encountered:
Yeah I think it's a pretty nice idea to have the common headers exposed in a typed fashion.. in fact i think the headers could be stored in a dynamicdictionary and layer ontop a set of conventions ..like removing - in a header name...
that way you could do Header.AcceptRanges without having to hardcode in the typed nature of it. The DynamicDictionary is a type in Nancy..
I think it would be very useful to have typed properties for all the well-know request and response headers (Accept, Authorization, etc). Today is a simple IDictionary<string, IEnumerable for the request and a IDictionary<string, string> for the response (Which is wrong I think as you can have multiple values for an specific header. For example, Accept-Ranges).
I can contribute this as a patch if you are interested.
Thanks
Pablo.
The text was updated successfully, but these errors were encountered: