Web service request settings that are often common to multiple requests.
public class WebServiceRequestSettings
name | description |
---|---|
WebServiceRequestSettings() | Initializes a new instance of the WebServiceRequestSettings class. |
AuthorizationHeader { get; set; } | Gets or sets the authorization header. |
AuthorizationHeaderCreator { get; set; } | Gets or sets the authorization header creator. |
CookieManager { get; set; } | Gets or sets the cookie manager. If GetHttpClient is set, then this property is ignored. |
DefaultHeaders { get; set; } | Gets or sets the default headers. |
DefaultTimeout { get; set; } | Gets or sets the default timeout. If GetHttpClient is set, then this property is ignored. |
Disable100Continue { get; set; } | True if 100-Continue behavior should be disabled. |
DisableKeepAlive { get; set; } | True if the connection should be closed after this web service request is made. |
ErrorReporter { get; set; } | Called when an error occurs while building a request or handling a response. |
GetHttpClient { get; set; } | A delegate that, if set, is called to retrieve an HttpClient. If this property is set, then the consumer is responsible for the entire lifetime of the HttpClient, including disposal. |
Host { get; set; } | Gets or sets the host. |
StartTrace { get; set; } | A Func that, if set, is called to start a trace when a web request begins; its return value will be disposed when the web request ends. |
UserAgent { get; set; } | Gets or sets the user agent. |
Clone() | Clones this instance. |