Class HttpContentExtensions
- Namespace
- GroupeIsa.Neos.Shared.Extensions
- Assembly
- GroupeIsa.Neos.Shared.dll
Represents the extension methods for the HttpContent class.
public static class HttpContentExtensions
- Inheritance
-
HttpContentExtensions
- Inherited Members
Methods
ReadAsAsync<T>(HttpContent, CancellationToken)
Reads http content and converts it to the specified type.
public static Task<T?> ReadAsAsync<T>(this HttpContent httpContent, CancellationToken cancellationToken = default)
Parameters
httpContentHttpContentThe http content.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<T>
The converted content.
Type Parameters
TThe type.