Method | Description | |
---|---|---|
AddGlobalHeader ( string name, string value ) : void |
Adds global headers to the HttpClient.
|
|
DeleteAsync ( |
Sends an Http DELETE request to the given URI using the given headers.
|
|
GetAsync ( |
Sends a sends a HTTP GET request to the specified endpoint. Endpoint to send the request to. Additional headers to pass for the request
|
|
HttpHelper ( |
Initializes a new instance of the IBM.Cloudant.Client.HttpHelper class.
|
|
HttpHelper ( |
Initializes a new instance of the IBM.Cloudant.Client.HttpHelper class.
|
|
PostAsync ( |
Sends an Http POST request to the given URI using the given headers and content.
|
|
PutAsync ( |
Sends an Http PUT request to the given URI using the given headers and content.
|
|
RemoveGlobalHeader ( string name ) : void |
Removes a header from the HttpClient global headers.
|
|
SetNumberOfRetries ( int numberOfRetries ) : void |
Maximum number of times to rety a request when it has been intercepted and any interceptor sets the IBM.Cloudant.Client.HttpConnectionInterceptorContext.replayRequest flag to true.
|
Method | Description | |
---|---|---|
FormatAndSanitizeHeaders ( HttpHeaders headers ) : string |
Removes password from Authentication header for safe logging.
|
|
FormatHttpRequestLog ( |
||
FormatHttpResponseLog ( |
||
FormatProperties ( object>.IDictionary |
||
SendJSONRequestAsync ( HttpMethod method, |
||
SendRequestAsync ( HttpMethod method, |
public AddGlobalHeader ( string name, string value ) : void | ||
name | string | Header name. |
value | string | Header value. |
return | void |
public DeleteAsync ( |
||
uri | URI for this request. | |
headers | String>.Dictionary | Http headers for this request. |
return | Task |
public GetAsync ( |
||
uri | ||
headers | String>.Dictionary | |
return | Task |
public HttpHelper ( |
||
baseUri | Base URI for the HttpClient in this helper. All http requests must be relative to this URI. | |
return | System |
public HttpHelper ( |
||
baseUri | Base URI for the HttpClient in this helper. All http requests must be relative to this URI. | |
requestInterceptors | List |
Request interceptors. |
responseInterceptors | List |
Response interceptors. |
return | System |
public PostAsync ( |
||
uri | URI for this request. | |
headers | String>.Dictionary | Http headers for this request. |
body | string | The request contents. |
return | Task |
public PutAsync ( |
||
uri | URI for this request. | |
headers | String>.Dictionary | Http headers for this request. |
body | string | The request contents. |
return | Task |
public RemoveGlobalHeader ( string name ) : void | ||
name | string | Name. |
return | void |
public SetNumberOfRetries ( int numberOfRetries ) : void | ||
numberOfRetries | int | Number of retries. |
return | void |