Remove msgtype requirement in HttpMessageContent
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Inizia in src/System.Net.Http.Formatting/HttpMessageContent.cs alle righe citate, dove viene aggiunto msgtype=request e viene convalidato msgtype=response. Segui ReadAsHttpResponseMessageAsync() e determina il comportamento configurabile necessario; il lavoro è completato quando le richieste possono omettere msgtype e vengono accettate le risposte con Content-Type: application/http.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- C#
- Stelle
- 897
- Fork
- 358
- Merge medio
- 40m
- PR unite (30g)
- 1
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di aspnet/AspNetWebStack
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
aspnet/AspNetWebStack#431 · 1 commento ·
-
Needs: Author Feedback
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
aspnet/AspNetWebStack#430 · 2 commenti ·
-
Needs: Author Feedback
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
aspnet/AspNetWebStack#429 · 1 commento ·
-
Needs: Author Feedback
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
aspnet/AspNetWebStack#428 · 1 commento ·
-
bug
aspnet/AspNetWebStack#399 · 2 commenti · 1 assegnatario ·
Tutte le issue di aspnet/AspNetWebStack
Issue simili
-
core dependencies
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
-
bug frontend good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
NavigationViewItemAutomationPeer implements IInvokeProvider but never advertises the Invoke pattern Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
unoplatform/uno#24629 ·
-
agentic-workflows Needs: Triage :mag: State: In-PR
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Down / Waiting for removal
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100