Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.08 KB

File metadata and controls

30 lines (23 loc) · 1.08 KB

System.Net.Http


HttpResponseMessageExtensions

Extension methods for System.Net.Http.HttpResponseMessage to simplify JSON deserialization.

public static class HttpResponseMessageExtensions

Static Methods

DeserializeAsync

Task<T> DeserializeAsync(this HttpResponseMessage httpResponseMessage, JsonSerializerOptions jsonSerializerOptions = null)

Summary: Deserializes the HTTP response content to the specified type using JSON.

Parameters:
     httpResponseMessage  -  The HTTP response message.
     jsonSerializerOptions  -  Optional JSON serializer options. Uses default options if not specified.

Returns: A task representing the asynchronous operation, containing the deserialized object.


Generated by MarkdownCodeDoc version 1.2