Share via


TestServer.CreateHandler Method

Definition

Overloads

CreateHandler()

Creates a custom HttpMessageHandler for processing HTTP requests/responses with the test server.

CreateHandler(Action<HttpContext>)

Creates a custom HttpMessageHandler for processing HTTP requests/responses with custom configuration with the test server.

CreateHandler()

Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs

Creates a custom HttpMessageHandler for processing HTTP requests/responses with the test server.

public:
 System::Net::Http::HttpMessageHandler ^ CreateHandler();
public System.Net.Http.HttpMessageHandler CreateHandler ();
member this.CreateHandler : unit -> System.Net.Http.HttpMessageHandler
Public Function CreateHandler () As HttpMessageHandler

Returns

Applies to

CreateHandler(Action<HttpContext>)

Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs

Creates a custom HttpMessageHandler for processing HTTP requests/responses with custom configuration with the test server.

public System.Net.Http.HttpMessageHandler CreateHandler (Action<Microsoft.AspNetCore.Http.HttpContext> additionalContextConfiguration);
member this.CreateHandler : Action<Microsoft.AspNetCore.Http.HttpContext> -> System.Net.Http.HttpMessageHandler
Public Function CreateHandler (additionalContextConfiguration As Action(Of HttpContext)) As HttpMessageHandler

Parameters

additionalContextConfiguration
Action<HttpContext>

Returns

Applies to