HttpResponseMessageExtensions Class
Extensions of HttpResponseMessage.
Namespace
Songhay.Extensions
Base Types
  • object
graph BT Type-->Base0["object"] Type["HttpResponseMessageExtensions"] class Type type-node

Syntax

public static class HttpResponseMessageExtensions

Methods

Name Return Value Summary
DownloadByteArrayToFileAsync(HttpResponseMessage?, FileSystemInfo?) Task
Downloads HttpResponseMessage.Content from byte array to file.
static
DownloadByteArrayToFileAsync(HttpResponseMessage?, string) Task
Downloads HttpResponseMessage.Content from byte array to file.
static
DownloadStringToFileAsync(HttpResponseMessage?, FileSystemInfo?) Task
Downloads HttpResponseMessage.Content from byte array to file.
static
DownloadStringToFileAsync(HttpResponseMessage?, string) Task
Downloads HttpResponseMessage.Content from byte array to file.
static
IsMovedOrRedirected(HttpResponseMessage?) bool
Returns true when HttpResponseMessage is HttpStatusCode.Moved, HttpStatusCode.MovedPermanently or HttpStatusCode.Redirect.
static
StreamToInstanceAsync<TInstance>(HttpResponseMessage?, JsonSerializerOptions?) Task<TInstance>
Serializes the HttpResponseMessage to the specified TInstance
static
StreamToInstanceAsync<TInstance>(HttpResponseMessage?) Task<TInstance>
Serializes the HttpResponseMessage to the specified TInstance
static