RestUtilities.

GetRequest(string, Uri, IDictionary<string, string>) Method

Summary

Creates and configures an instance of RestSharp.RestRequest.
Assembly
Cake.Rest.dll
Namespace
Cake.Rest
Containing Type
RestUtilities

Syntax

public static IRestRequest GetRequest(string method, Uri endpoint, IDictionary<string, string> headers)

Parameters

Name Type Description
method string HTTP Method
endpoint Uri API Endpoint URI
headers IDictionary<string, string> HTTP Headers

Return Value

Type Description
IRestRequest Instance of RestSharp.RestRequest configured with given parameters.