HttpAliases Class

Summary

Contains functionality related to HTTP operations.
Namespace
Cake.Common.Net
Base Types
  • object
graph BT Type-->Base0["object"] Type["HttpAliases"] class Type type-node

Syntax

[CakeAliasCategory("HTTP Operations")]
public static class HttpAliases

Attributes

Type Description
CakeAliasCategoryAttribute An attribute used for documentation of alias methods/properties.

Methods

Name Value Summary
DownloadFile(ICakeContext, string, DownloadFileSettings) FilePath
Downloads the specified resource over HTTP to a temporary file with specified settings.
static
DownloadFile(ICakeContext, string, FilePath, DownloadFileSettings) void
Downloads the specified resource over HTTP to the specified output path and settings.
static
DownloadFile(ICakeContext, string, FilePath) void
Downloads the specified resource over HTTP to the specified output path.
static
DownloadFile(ICakeContext, string) FilePath
Downloads the specified resource over HTTP to a temporary file.
static
DownloadFile(ICakeContext, Uri, DownloadFileSettings) FilePath
Downloads the specified resource over HTTP to a temporary file with specified settings.
static
DownloadFile(ICakeContext, Uri, FilePath, DownloadFileSettings) void
Downloads the specified resource over HTTP to the specified output path.
static
DownloadFile(ICakeContext, Uri) FilePath
Downloads the specified resource over HTTP to a temporary file.
static
UploadFile(ICakeContext, string, byte[], string) void
Uploads the specified byte array via a HTTP POST to the specified uri using multipart/form-data.
static
UploadFile(ICakeContext, string, FilePath) void
Uploads the specified file via a HTTP POST to the specified uri using multipart/form-data.
static
UploadFile(ICakeContext, Uri, byte[], string, UploadFileSettings) void
Uploads the specified byte array via a HTTP POST to the specified uri using multipart/form-data.
static
UploadFile(ICakeContext, Uri, FilePath, UploadFileSettings) void
Uploads the specified file via a HTTP POST to the specified uri using multipart/form-data.
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin