Page tree
Skip to end of metadata
Go to start of metadata

Overview

String RestRequest.Method { get; set; }

Gets or sets the HTTP method of request.

Remarks

Most commonly used methods are POST, GET, PUT, PATCH, and DELETE.

Examples

var client = $Rest.Create('https://login.microsoftonline.com/tenant/oauth2/v2.0/token');
var request = client.Request();

request.Method = 'POST';

See Also