Click or drag to resize

HttpClientDispatch Method

One of the core methods of the HttpClient class. This method uses the HttpClientRequest class to send messages to the server and the HttpClientResponse to receive server answers. Uses the TryDispatch method to send data and raises an HttpException exception if any errors occurs.

Namespace: Crestron.SimplSharp.Net.Http
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public HttpClientResponse Dispatch(
	HttpClientRequest aRequest
)

Parameters

aRequest  HttpClientRequest
HttpClient Request

Return Value

HttpClientResponse
HttpClient Response
Exceptions
ExceptionCondition
HttpExceptionThrown if any Http errors occur
ExceptionThrown if an unexpected error occurs
NotSupportedExceptionSSL (HTTPS) is not supported

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also