-
Notifications
You must be signed in to change notification settings - Fork 191
Consolidate all header parsing code #825
Comments
Tracking issues:
|
@Eilon Moving the rest of the work to preview3. |
@Eilon could we do this in 2.1? |
Yessss... @jkotalik is actually already working on some of this, starting with the toughest of them all: MediaType header value. |
@muratg @Eilon We added structured suffixes and facets to MediaTypeHeaderValue (MTHV) in HttpAbstractions. I was trying to modify MediaType in MVC to wrap MTHV, though it seemed non trivial and wouldn't have much benefit until we either remove MediaType or can deprecate it. What other header logic can be moved from StaticFiles/ResponseCaching to HttpAbstractions? |
I think we can deprecate MediaType. @Eilon thoughts? |
@jkotalik the idea is to at least remove the duplicate code and have MediaType refer to MTHV. MediaType's code has already been the source of multiple critical bugs. As for StaticFiles and ResponseCaching you'll have to investigate yourself. Those components process lots of headers but they mostly use HttpAbstractions types to do it. |
@javiercn just came by to express to me just how excited he is to share his wealth of knowledge and extensive notes in this area; alas, he had to go to an important meeting first. |
I would only obsolete |
We should have a design we are all happy with for 3.0 (one that allows efficient header non allocating iteration as a basic API and a richer strongly typed allocating API for convenience) |
Plan from the mtg:
|
This issue was moved to dotnet/aspnetcore#2705 |
Header parsing logic is used in
We should investigate the usages across the board and consolidate the code here.
The text was updated successfully, but these errors were encountered: