Skip to content

Attach HttpRequestMessage to HttpResponse - #8

Open
stephenprater wants to merge 1 commit into
mleech:masterfrom
stephenprater:response-should-have-request
Open

Attach HttpRequestMessage to HttpResponse#8
stephenprater wants to merge 1 commit into
mleech:masterfrom
stephenprater:response-should-have-request

Conversation

@stephenprater

Copy link
Copy Markdown

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.

@stephenprater

Copy link
Copy Markdown
Author

Full disclosure: I do not know F# so this is basically me stabbing in the dark until I get the test case to pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant