Exemple #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
 };
Exemple #2
0
 /// <summary>
 /// Creates a PUT rest request.
 /// </summary>
 public static RestRequest Put(RestUri uri, RestContentType contentType, object content) => Put(uri, null, contentType, content);
Exemple #3
0
 /// <summary>
 /// Creates a PUT rest request.
 /// </summary>
 public static RestRequest Put(RestUri uri, RestHeaders headers) => Put(uri, headers, RestContentType.None, null);
Exemple #4
0
 /// <summary>
 /// Creates a PUT rest request.
 /// </summary>
 public static RestRequest Put(RestUri uri) => Put(uri, null);
Exemple #5
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
 };
Exemple #6
0
 /// <summary>
 /// Creates a GET rest request.
 /// </summary>
 public static RestRequest Get(RestUri uri) => Get(uri, null);