AadHttpClientConfiguration class

Configuration for HttpClient.

Extends

Remarks

The HttpClientConfiguration object provides a set of switches for enabling/disabling various features of the HttpClient class. Normally these switches are set (e.g. when calling HttpClient.fetch()) by providing one of the predefined defaults from HttpClientConfigurations, however switches can also be changed via the HttpClientConfiguration.overrideWith() method.

Constructors

(constructor)(flags, overrideFlags)

Constructs a new instance of HttpClientConfiguration with the specified flags. The default values will be used for any flags that are missing or undefined. If overrideFlags is specified, it takes precedence over flags.

Properties

flags

Methods

overrideWith(sourceFlags)

Constructor Details

(constructor)(flags, overrideFlags)

Constructs a new instance of HttpClientConfiguration with the specified flags. The default values will be used for any flags that are missing or undefined. If overrideFlags is specified, it takes precedence over flags.

constructor(flags: IAadHttpClientConfiguration, overrideFlags?: IAadHttpClientConfiguration);

Parameters

Property Details

flags

protected flags: IAadHttpClientConfiguration;

Property Value

Method Details

overrideWith(sourceFlags)

/** @override */
overrideWith(sourceFlags: IAadHttpClientConfiguration): AadHttpClientConfiguration;

Parameters

Returns