WebApplicationFactoryClientOptions WebApplicationFactoryClientOptions WebApplicationFactoryClientOptions Class

Definition

The default options to use to when creating HttpClient instances by calling CreateClient(WebApplicationFactoryClientOptions).

public class WebApplicationFactoryClientOptions
type WebApplicationFactoryClientOptions = class
Public Class WebApplicationFactoryClientOptions
Inheritance
WebApplicationFactoryClientOptionsWebApplicationFactoryClientOptionsWebApplicationFactoryClientOptions

Constructors

WebApplicationFactoryClientOptions() WebApplicationFactoryClientOptions() WebApplicationFactoryClientOptions()

Initializes a new instance of WebApplicationFactoryClientOptions.

Properties

AllowAutoRedirect AllowAutoRedirect AllowAutoRedirect

Gets or sets whether or not HttpClient instances created by calling CreateClient(WebApplicationFactoryClientOptions) should automatically follow redirect responses. The default is true. ///

BaseAddress BaseAddress BaseAddress

Gets or sets the base address of HttpClient instances created by calling CreateClient(WebApplicationFactoryClientOptions). The default is http://localhost.

HandleCookies HandleCookies HandleCookies

Gets or sets whether HttpClient instances created by calling CreateClient(WebApplicationFactoryClientOptions) should handle cookies. The default is true.

MaxAutomaticRedirections MaxAutomaticRedirections MaxAutomaticRedirections

Gets or sets the maximum number of redirect responses that HttpClient instances created by calling CreateClient(WebApplicationFactoryClientOptions) should follow. The default is 7.

Applies to