Sends a message to the specified HTTP client.
Namespace: DocuWare.Services.Http.ClientAssembly: DocuWare.RestClient (in DocuWare.RestClient.dll) Version: 6.5.0.0 (6.5.0.5648)
Syntax
Parameters
- httpClient
- Type: HttpClient
The HTTP client.
- uri
- Type: System String
The URI.
- method
- Type: HttpMethod
The method.
- requestContentType
- Type: System String
Type of the request content.
- dataToSend
- Type: TRequest
The data to send.
- acceptType
- Type: System String
Type of the accept.
Type Parameters
- TResponse
- The type of the response.
- TRequest
- The type of the request.
Return Value
Type: Task DeserializedHttpResponse TResponseUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type HttpClient. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).See Also