WebApplicationFactoryClientOptions Class

Definition

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

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

Constructors

WebApplicationFactoryClientOptions()

Initializes a new instance of WebApplicationFactoryClientOptions.

Properties

AllowAutoRedirect

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

BaseAddress

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

HandleCookies

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

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