/// <summary> /// Creates a PUT rest request. /// </summary> public static RestRequest Put(RestUri uri, RestHeaders headers, RestContentType contentType, object content) => new RestRequest { Method = HttpMethod.Put, Uri = uri, Headers = headers, ContentType = contentType, Content = content, ContentEncoding = Encoding.UTF8 };
/// <summary> /// Creates a PUT rest request. /// </summary> public static RestRequest Put(RestUri uri, RestHeaders headers) => Put(uri, headers, RestContentType.None, null);
/// <summary> /// Creates a GET rest request. /// </summary> public static RestRequest Get(RestUri uri, RestHeaders headers) => new RestRequest { Method = HttpMethod.Get, Uri = uri, Headers = headers };