8000 HttpClient and HttpResponseHandler "Respond" extensions don't actually work properly · Issue #39 · richardszalay/mockhttp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content 8000
HttpClient and HttpResponseHandler "Respond" extensions don't actually work properly #39
Closed
@EffortlessFury

Description

@EffortlessFury

c70bf4f

Your tests directly invoke the "SendAsync" method of your custom handler, thus they pass; however, utilizing your custom handler within an HttpClient and attempting to pass the request to a different HttpClient/Handler will fail with the following error:

The request message was already sent. Cannot send the same request message multiple times.

Am I not understanding the correct usage of these extension methods or is this an accidental oversight?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0