Class RestClientConfiguration
Defines the basic configuration values for a RestClient. This configuration can be extended by specific client implementations.
Namespace: ReqRest
Assembly: ReqRest.dll
Syntax
public class RestClientConfiguration
Constructors
RestClientConfiguration()
Initializes a new RestClientConfiguration with default values.
Declaration
public RestClientConfiguration()
Properties
BaseUrl
Gets or sets an Uri which forms the base URL for any request created by the client.
Any RestInterface which is exposed by the client will start building its request URL based on this value.
This can be null. If so, a default initial Uri will be used by most components instead.
Declaration
public Uri? BaseUrl { get; set; }
HttpClientProvider
Gets or sets a function which returns an HttpClient instance that should be used for making requests created by the client.
By default, this returns a default HttpClient factory that uses a single static HttpClient instance.
Declaration
public Func<HttpClient> HttpClientProvider { get; set; }