Is it possible to modify the form-data content of an HttpRequestMessage in a filter or HttpMessageHandler.
I want to read a value from the querystring and dependent on certain logic I want to update the contents of the form-data passed in the HttpRequestMessage before it hits the action method on the controller, that way I can still rely on the built in model binding and check the ModelState.IsValid() method.
Is this possible?
I don’t believe the request content can be modified as it is a “read once” stream. What sort of changes are you making to the content?