WebApplicationFactory<TEntryPoint>.CreateClient Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.