Table of Contents
Extensions for HttpClient
public static class HttpClientExtensions
Inheritance System.Object HttpClientExtensions
Version of System.Net.Http.HttpClient.GetByteArrayAsync(System.String,System.Threading.CancellationToken) that passes in an auth header value
public static System.Threading.Tasks.Task<byte[]> GetBytesWithAuthAsync(this System.Net.Http.HttpClient client, string requestUri, string auth=null, System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));
client
System.Net.Http.HttpClient
requestUri
System.String
auth
System.String
ct
System.Threading.CancellationToken
System.Threading.Tasks.Task<System.Byte[]>
Version of System.Net.Http.HttpClient.GetStringAsync(System.String,System.Threading.CancellationToken) that passes in an auth header value
public static System.Threading.Tasks.Task<string> GetStringWithAuthAsync(this System.Net.Http.HttpClient client, string requestUri, string auth=null, System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));
client
System.Net.Http.HttpClient
requestUri
System.String
auth
System.String
ct
System.Threading.CancellationToken