dotnet/aspnetcore

MediaTypeHeaderValue accepts a list of strings instead of a list of StringSegments

Open

#2,695 创建于 2018年1月2日

在 GitHub 查看
 (13 评论) (0 反应) (0 负责人)C# (10,653 fork)batch import
affected-very-fewapi-suggestionarea-networkingenhancementfeature-http-abstractionshelp wantedseverity-nice-to-have

仓库指标

Star
 (37,933 star)
PR 合并指标
 (平均合并 16天 9小时) (30 天内合并 258 个 PR)

描述

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 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

贡献者指南