Exemplo n.º 1
0
 /// <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
 };
Exemplo n.º 2
0
 /// <summary>
 /// Creates a PUT rest request.
 /// </summary>
 public static RestRequest Put(RestUri uri, RestHeaders headers) => Put(uri, headers, RestContentType.None, null);
Exemplo n.º 3
0
 /// <summary>
 /// Creates a GET rest request.
 /// </summary>
 public static RestRequest Get(RestUri uri, RestHeaders headers) => new RestRequest
 {
     Method  = HttpMethod.Get,
     Uri     = uri,
     Headers = headers
 };