Remove msgtype requirement in HttpMessageContent
まだ誰も着手していません。
評価
調査の方向性
msgtype=request が追加され、msgtype=response が検証される、引用された行の src/System.Net.Http.Formatting/HttpMessageContent.cs から始めます。ReadAsHttpResponseMessageAsync() を追跡して、必要な設定可能な動作を特定します。完了条件は、リクエストで msgtype を省略でき、Content-Type: application/http を持つレスポンスが受け入れられることです。
索引モデルが issue の本文から書いたものです。
説明
HttpMessageContent serializes HTTP requests/responses inside a mulitpart/mixed body.
For requests, it sends the header Content-Type: application/http; msgtype=request.
For responses, it expects the header Content-Type: application/http; msgtype=response.
This is where msgtype=request is added in source:
https://github.com/aspnet/AspNetWebStack/blob/1231b77d79956152831b75ad7f094f844251b97f/src/System.Net.Http.Formatting/HttpMessageContent.cs#L68
This is where msgtype=response is validated in source:
https://github.com/aspnet/AspNetWebStack/blob/1231b77d79956152831b75ad7f094f844251b97f/src/System.Net.Http.Formatting/HttpMessageContent.cs#L142-L171
HttpMessageContent should be configurable to not sent a msgtype parameter, and accept responses without a msgtype (given Content-Type: application/http).
As a common real-world example, the OData specification uses Content-Type: application/http without any further msgtype in both its batched requests and responses, see:
https://www.odata.org/documentation/odata-version-2-0/batch-processing/
Inside Microsoft, Dataverse exposes OData services and its batching endpoint is unusable with HttpMessageContent because:
- Dataverse throws when a batch has
msgtype=requestin itsContent-Type; ReadAsHttpResponseMessageAsync()throws when parsing Dataverse response because it does not havemsgtype=response.
- 主要言語
- C#
- スター
- 897
- フォーク
- 358
- 平均マージ
- 40分
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aspnet/AspNetWebStack のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
aspnet/AspNetWebStack#431 · コメント 1 件 ·
-
Needs: Author Feedback
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
aspnet/AspNetWebStack#430 · コメント 2 件 ·
-
Needs: Author Feedback
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
aspnet/AspNetWebStack#429 · コメント 1 件 ·
-
Needs: Author Feedback
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
aspnet/AspNetWebStack#428 · コメント 1 件 ·
-
bug
aspnet/AspNetWebStack#399 · コメント 2 件 · 担当者 1 名 ·
aspnet/AspNetWebStack の issue をすべて見る
似ている issue
-
bug frontend good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
NavigationViewItemAutomationPeer implements IInvokeProvider but never advertises the Invoke pattern オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
unoplatform/uno#24629 ·
-
agentic-workflows Needs: Triage :mag: State: In-PR
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
Type: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
apache/arrow-adbc#4809 ·