TestExecutionContext.

CreateHttpClient(HttpMessageHandler) Method

Summary

Creates a new System.Net.Http.HttpClient instance that uses a custom message handler.
Assembly
Wyam.Testing.dll
Namespace
Wyam.Testing.Execution
Containing Type
TestExecutionContext

Syntax

public HttpClient CreateHttpClient(HttpMessageHandler handler)

Parameters

Name Type Description
handler HttpMessageHandler The message handler to use for this client.

Return Value

Type Description
HttpClient A new System.Net.Http.HttpClient instance.
GitHub