Show / Hide Table of Contents

Class HttpContentExtensions

Extension methods for System.Net.Http.HttpContent.

Inheritance
Object
HttpContentExtensions
Inherited Members
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IRM.Extensions.Http
Assembly: IRM.Extensions.Http.dll
Syntax
public static class HttpContentExtensions

Methods

ReadProblemDetailsAsync(HttpContent, CancellationToken)

Reads a ProblemDetails from the System.Net.Http.HttpContent.

Declaration
public static async Task<ProblemDetails> ReadProblemDetailsAsync(this HttpContent content, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.Net.Http.HttpContent content

The System.Net.Http.HttpContent.

System.Threading.CancellationToken cancellationToken

The cancellation instruction.

Returns
System.Threading.Tasks.Task<ProblemDetails>

A ProblemDetails.

Back to top Generated by DocFX