Class HttpClientUtils
System.Object
  Westwind.Utilities.HttpClientUtils
public class HttpClientUtils : object

Class Members

MemberDescription

Constructor

STR_MultipartBoundary

DownloadJsonAsync

Makes a JSON request that returns a JSON result.

public static Task DownloadJsonAsync(HttpClientRequestSettings settings)

public static Task DownloadJsonAsync(string url,     string verb,     object data)

DownloadResponseMessageAsync

Calls a URL and returns the raw, unretrieved HttpResponse. Also set on settings.Response and you can read the response content from settings.Response.Content.ReadAsXXX() methods.

public static Task DownloadResponseMessageAsync(HttpClientRequestSettings settings)

DownloadStringAsync

Runs an Http request and returns success results as a string or null on failure or non-200/300 requests.

public static Task DownloadStringAsync(HttpClientRequestSettings settings)

public static Task DownloadStringAsync(string url,     object data,     string contentType,     string verb)

GetHttpClient

Creates an instance of the HttpClient and sets the API Key in the headers.

public static HttpClient GetHttpClient(HttpClientHandler handler,     HttpClientRequestSettings settings)

Requirements

Namespace: Westwind.Utilities
Assembly: westwind.utilities.dll

© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic