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
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 |
HTTP Headers |
Return Value
| Type | Description |
|---|---|
| IRestRequest | Instance of RestSharp.RestRequest configured with given parameters. |
