Method | Description | |
---|---|---|
Close ( ) : void | ||
CreateRequest ( HTTPMethod HTTPMethod, String URI, Action |
Create a new HTTP request.
|
|
Dispose ( ) : void | ||
Execute ( HTTPRequest>.Func |
Execute the given HTTP request and return its result.
|
|
Execute ( HTTPRequest Request, ClientRequestLogHandler RequestLogDelegate = null, ClientResponseLogHandler ResponseLogDelegate = null, System.TimeSpan Timeout = null, |
Execute the given HTTP request and return its result.
|
|
HTTPClient ( IIPAddress RemoteIPAddress, IPPort RemotePort, RemoteCertificateValidationCallback RemoteCertificateValidator = null, |
Create a new HTTPClient using the given optional parameters.
|
|
HTTPClient ( IPSocket RemoteSocket, RemoteCertificateValidationCallback RemoteCertificateValidator = null, |
Create a new HTTPClient using the given optional parameters.
|
|
HTTPClient ( String RemoteHost, IPPort RemotePort = null, RemoteCertificateValidationCallback RemoteCertificateValidator = null, |
Create a new HTTPClient using the given optional parameters.
|
|
ToString ( ) : String |
Returns a string representation of this object.
|
public CreateRequest ( HTTPMethod HTTPMethod, String URI, Action |
||
HTTPMethod | HTTPMethod | A HTTP method. |
URI | String | An URI. |
BuilderAction | Action |
A delegate to configure the new HTTP request builder. |
return |
public Execute ( HTTPRequest>.Func |
||
HTTPRequestDelegate | HTTPRequest>.Func | A delegate for producing a HTTP request for a given HTTP client. |
RequestLogDelegate | ClientRequestLogHandler | A delegate for logging the HTTP request. |
ResponseLogDelegate | ClientResponseLogHandler | A delegate for logging the HTTP request/response. |
Timeout | System.TimeSpan | An optional timeout. |
CancellationToken | A cancellation token. | |
return | Task |
public Execute ( HTTPRequest Request, ClientRequestLogHandler RequestLogDelegate = null, ClientResponseLogHandler ResponseLogDelegate = null, System.TimeSpan Timeout = null, |
||
Request | HTTPRequest | A HTTP request. |
RequestLogDelegate | ClientRequestLogHandler | A delegate for logging the HTTP request. |
ResponseLogDelegate | ClientResponseLogHandler | A delegate for logging the HTTP request/response. |
Timeout | System.TimeSpan | An optional timeout. |
CancellationToken | A cancellation token. | |
return | Task |
public HTTPClient ( IIPAddress RemoteIPAddress, IPPort RemotePort, RemoteCertificateValidationCallback RemoteCertificateValidator = null, |
||
RemoteIPAddress | IIPAddress | The remote IP address to connect to. |
RemotePort | IPPort | The remote IP port to connect to. |
RemoteCertificateValidator | RemoteCertificateValidationCallback | A delegate to verify the remote TLS certificate. |
ClientCert | The TLS client certificate to use. | |
DNSClient | DNSClient | An optional DNS client. |
return | System |
public HTTPClient ( IPSocket RemoteSocket, RemoteCertificateValidationCallback RemoteCertificateValidator = null, |
||
RemoteSocket | IPSocket | The remote IP socket to connect to. |
RemoteCertificateValidator | RemoteCertificateValidationCallback | A delegate to verify the remote TLS certificate. |
ClientCert | The TLS client certificate to use. | |
DNSClient | DNSClient | An optional DNS client. |
return | System |
public HTTPClient ( String RemoteHost, IPPort RemotePort = null, RemoteCertificateValidationCallback RemoteCertificateValidator = null, |
||
RemoteHost | String | The remote hostname to connect to. |
RemotePort | IPPort | The remote IP port to connect to. |
RemoteCertificateValidator | RemoteCertificateValidationCallback | A delegate to verify the remote TLS certificate. |
ClientCert | The TLS client certificate to use. | |
DNSClient | DNSClient | An optional DNS client. |
return | System |