Method | Description | |
---|---|---|
AddAcceptHeader ( AcceptHeader acceptHeader ) : IRestClient |
Helper method for adding an Accept header to the request.
|
|
AddAuthorizationHeader ( string scheme, string parameter ) : IRestClient | ||
AddBody ( string bodyString ) : IRestClient |
The request body as a string.
|
|
AddContentType ( ContentType contentType ) : IRestClient |
Helper method for adding a content type to the request.
|
|
AddFormParameter ( string key, string value ) : IRestClient |
|
|
AddHeader ( string key, string value ) : IRestClient |
Add a header to the request.
|
|
AddQueryStringParameter ( string key, string value ) : IRestClient |
Adds a query string parameter to the request url.
|
|
MakeRequest ( ) : HttpResponseMessage | ||
RequestUri ( string url ) : IRetryAttempts | ||
WithRetries ( RetryType retryType, object retryParameter, int maxRetries, int interval ) : IVerb | ||
WithVerb ( HttpMethod httpMethod ) : IRestClient | ||
WithoutRetries ( ) : IVerb |
Method | Description | |
---|---|---|
RestClient ( string url ) : System |
Method | Description | |
---|---|---|
IsFinalRetryRequest ( int currentRetryIndex ) : bool | ||
IsRetryConditionSatisfied ( HttpResponseMessage httpResponseMessage, RetryType retryType, object retryParameter ) : bool | ||
SetCertificationValidation ( bool validationResult ) : IRestClient | ||
WriteRequestToDebugWindow ( int currentRetryIndex, int maxRetries, HttpRequestMessage httpRequestMessage ) : void | ||
WriteResponseToDebugWindow ( int currentRetryIndex, int maxRetries, HttpResponseMessage httpResponseMessage ) : void |
public AddAcceptHeader ( AcceptHeader acceptHeader ) : IRestClient | ||
acceptHeader | AcceptHeader | The |
return | IRestClient |
public AddAuthorizationHeader ( string scheme, string parameter ) : IRestClient | ||
scheme | string | |
parameter | string | |
return | IRestClient |
public AddBody ( string bodyString ) : IRestClient | ||
bodyString | string | The string to be used for the request body. |
return | IRestClient |
public AddContentType ( ContentType contentType ) : IRestClient | ||
contentType | ContentType | The |
return | IRestClient |
public AddFormParameter ( string key, string value ) : IRestClient | ||
key | string | |
value | string | |
return | IRestClient |
public AddHeader ( string key, string value ) : IRestClient | ||
key | string | The key of the header. |
value | string | The value of the header. |
return | IRestClient |
public AddQueryStringParameter ( string key, string value ) : IRestClient | ||
key | string | The key of the querystring parameter. |
value | string | The value of the querystring parameter. |
return | IRestClient |
public static RequestUri ( string url ) : IRetryAttempts | ||
url | string | |
return | IRetryAttempts |
public WithRetries ( RetryType retryType, object retryParameter, int maxRetries, int interval ) : IVerb | ||
retryType | RetryType | |
retryParameter | object | |
maxRetries | int | |
interval | int | |
return | IVerb |
public WithVerb ( HttpMethod httpMethod ) : IRestClient | ||
httpMethod | HttpMethod | |
return | IRestClient |