Class HttpClientServiceDeleteExtensions
Static object for HttpClientService extensions.
Inheritance
Inherited Members
Namespace: Geko.HttpClientService.Extensions
Assembly: Geko.HttpClientService.dll
Syntax
public static class HttpClientServiceDeleteExtensions
Methods
| Improve this Doc View SourceDeleteAsync(HttpClientService, String)
Sends a DELETE 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>> DeleteAsync(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 |
DeleteAsync<TResponseBody>(HttpClientService, String)
Sends a DELETE 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>> DeleteAsync<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
|