Share via


WebApplicationFactory<TEntryPoint>.CreateClient Method

Definition

Overloads

CreateClient()

Creates an instance of HttpClient that automatically follows redirects and handles cookies.

CreateClient(WebApplicationFactoryClientOptions)

Creates an instance of HttpClient that automatically follows redirects and handles cookies.

CreateClient()

Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs

Creates an instance of HttpClient that automatically follows redirects and handles cookies.

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

Returns

The HttpClient.

Applies to

CreateClient(WebApplicationFactoryClientOptions)

Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs

Creates an instance of HttpClient that automatically follows redirects and handles cookies.

public:
 System::Net::Http::HttpClient ^ CreateClient(Microsoft::AspNetCore::Mvc::Testing::WebApplicationFactoryClientOptions ^ options);
public System.Net.Http.HttpClient CreateClient (Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactoryClientOptions options);
member this.CreateClient : Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactoryClientOptions -> System.Net.Http.HttpClient
Public Function CreateClient (options As WebApplicationFactoryClientOptions) As HttpClient

Parameters

Returns

The HttpClient.

Applies to