You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
HttpMessageContent should be configurable to not sent a msgtype parameter, and accept responses without a msgtype (given Content-Type: application/http).
Thanks for reaching out. We are currently prioritizing critical bug fixes and security issues over new features in this repository. Putting this in the backlog to collect more feedback.
HttpMessageContent
serializes HTTP requests/responses inside amulitpart/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:AspNetWebStack/src/System.Net.Http.Formatting/HttpMessageContent.cs
Line 68 in 1231b77
This is where
msgtype=response
is validated in source:AspNetWebStack/src/System.Net.Http.Formatting/HttpMessageContent.cs
Lines 142 to 171 in 1231b77
HttpMessageContent
should be configurable to not sent amsgtype
parameter, and accept responses without amsgtype
(givenContent-Type: application/http
).As a common real-world example, the OData specification uses
Content-Type: application/http
without any furthermsgtype
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:msgtype=request
in itsContent-Type
;ReadAsHttpResponseMessageAsync()
throws when parsing Dataverse response because it does not havemsgtype=response
.The text was updated successfully, but these errors were encountered: