MediaTypeHeaderValue accepts a list of strings instead of a list of StringSegments
Open
affected-very-few
api-suggestion
area-networking
enhancement
feature-http-abstractions
help wanted
severity-nice-to-have
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 281
Description
Update: API Proposal by @david-acker is in a comment below: https://github.com/dotnet/aspnetcore/issues/2695#issuecomment-1536948278
___
_From @jkotalik on Monday, August 21, 2017 6:09:48 PM_
With our efforts to remove usages of strings in favor of string segments, it seems incomplete that [MediaTypeHeaderValue.ParseList](https://github.com/aspnet/HttpAbstractions/blob/dev/src/Microsoft.Net.Http.Headers/MediaTypeHeaderValue.cs#L377-L395) only accepts a list of strings rather than a list of StringSegment. We should consider adding an overload to accept a list of StringSegment too.
_Copied from original issue: aspnet/HttpAbstractions#920_
Contributor guide
Assessment
This issue has not been assessed yet.