Skip to content

IHttpRequestService

Namespace: ThinkGeo.Core

public interface IHttpRequestService

Properties

HttpClient

public abstract HttpClient HttpClient { get; set; }

Property Value

HttpClient

WebProxy

public abstract IWebProxy WebProxy { get; set; }

Property Value

IWebProxy

UserAgent

This property allows you to specify a custom user-agent request header when making requests to a Web server. This header provides information about the client application or device and can be useful for server-side logging and analytics.

public abstract string UserAgent { get; set; }

Property Value

String

Credentials

This property gets or sets the base authentication interface for retrieving credentials for Web Client authentication.

public abstract ICredentials Credentials { get; set; }

Property Value

ICredentials

TimeoutInSeconds

public abstract int TimeoutInSeconds { get; set; }

Property Value

Int32

Events

SendingHttpRequest

public abstract event EventHandler<SendingHttpRequestMessageEventArgs> SendingHttpRequest;

ReceivedHttpResponse

public abstract event EventHandler<ReceivedHttpResponseMessageEventArgs> ReceivedHttpResponse;