scotch
scotch copied to clipboard
Attach HttpRequestMessage to HttpResponse
trafficstars
When you make a request using .NET's HttpClient - the HttpResponseMessage normally has the originating HttpRequestMessage attached to it on the RequestMessage property. This is useful for constructing absolute URIs from relative URLs found in the response message such as Form action attributes and relative 301/302 redirects.
To that end, Scotch should attach a reproduction of the original HttpRequestMessage to it's deserialized HttpResponseMessage.
Full disclosure: I do not know F# so this is basically me stabbing in the dark until I get the test case to pass.