This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Rest.
Summary
Contains utilities for interaction with RestSharp
- Assembly
- Cake
.Rest .dll - Namespace
- Cake
.Rest - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["RestUtilities"]
class Type type-node
Syntax
public static class RestUtilities
Methods
Name | Value | Summary |
---|---|---|
GetBodyContentType |
string |
static
|
GetClientInstance |
IRestClient |
Gets an instance of from
Cake.Rest.RestUtilities.Clients , or instantiates a new one
if not found in the dictionary. Then, configures it for buffered/non-buffered read and write, forces the use
of Newtonsoft.Json as serializer, and returns the object.
static
|
GetFileParam |
FileParameter |
Creates
RestSharp.FileParameter instance for use with AddFile.
static
|
GetHost |
string |
Returns the left part (Authority) of URI given to it.
static
|
GetRequest |
IRestRequest |
Creates and configures an instance of
RestSharp.RestRequest .
static
|
Extension Methods
Name | Value | Summary |
---|---|---|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
Returns the string value or a
Not set > markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|