Class HttpClientServiceHeadExtensions
Static object for HttpClientService extensions.
Inheritance
Inherited Members
Namespace: Geko.HttpClientService.Extensions
Assembly: Geko.HttpClientService.dll
Syntax
public static class HttpClientServiceHeadExtensions
Methods
| Improve this Doc View SourceHeadAsync(HttpClientService, String)
Sends a HEAD request to the specified requestUri
and returns the response wrapped in a ResponseObject<TResponseBody> in an asynchronous operation.
Declaration
public static async Task<ResponseObject<string>> HeadAsync(this HttpClientService httpClientService, string requestUri)
Parameters
Type | Name | Description |
---|---|---|
HttpClientService | httpClientService | The HttpClientService that gets extended |
System.String | requestUri | A string representing the resource to be called |
Returns
Type | Description |
---|---|
Task<ResponseObject<System.String>> | A ResponseObject<TResponseBody> containing the body of the response
as |
HeadAsync<TResponseBody>(HttpClientService, String)
Sends a HEAD request to the specified requestUri
and returns the response wrapped in a ResponseObject<TResponseBody> in an asynchronous operation.
String | in the BodyAsString property |
TResponseBody | in the BodyAsType property |
Stream | in the BodyAsStream property |
Declaration
public static async Task<ResponseObject<TResponseBody>> HeadAsync<TResponseBody>(this HttpClientService httpClientService, string requestUri)
Parameters
Type | Name | Description |
---|---|---|
HttpClientService | httpClientService | The HttpClientService that gets extended |
System.String | requestUri | A string representing the resource to be called |
Returns
Type | Description |
---|---|
Task<ResponseObject<TResponseBody>> | A ResponseObject<TResponseBody> containing the body of the response
as
|
Type Parameters
Name | Description |
---|---|
TResponseBody | The type of the property BodyAsType of the ResponseObject<TResponseBody> object,
that will contain the body of the response deserialized or casted to type
|