HTTP helpers
This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version1.IHttp>()
and is defined in Telligent.Evolution.Platform.dll
Methods
HttpResponse Delete(string url, HttpOptions options = null);
DELETEs a URL.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required | ||
options | HttpOptions | Options | Optional |
Return Type
Task<HttpResponse> DeleteAsync(string url, HttpOptions options = null);
DELETEs a URL.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required | ||
options | HttpOptions | Options | Optional |
Return Type
Task<HttpResponse>
HttpResponse Get(string url, HttpOptions options = null);
GETs a URL.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required | ||
options | HttpOptions | Options | Optional |
Return Type
Task<HttpResponse> GetAsync(string url, HttpOptions options = null);
GETs a URL.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required | ||
options | HttpOptions | Options | Optional |
Return Type
Task<HttpResponse>
HttpResponse Post(string url, string data, HttpOptions options = null);
POSTs raw data to a URL.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required | ||
data | string | Data | Required | ||
options | HttpOptions | Options | Optional |
Return Type
HttpResponse Post(string url, NameValueCollection data, HttpOptions options = null);
POSTs key/value pairs to a URL.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required | ||
data | NameValueCollection | Data | Required | ||
options | HttpOptions | Options | Optional |
Return Type
Task<HttpResponse> PostAsync(string url, string data, HttpOptions options = null);
POSTs raw data to a URL.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required | ||
data | string | Data | Required | ||
options | HttpOptions | Options | Optional |
Return Type
Task<HttpResponse>
Task<HttpResponse> PostAsync(string url, NameValueCollection data, HttpOptions options = null);
POSTs key/value pairs to a URL.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required | ||
data | NameValueCollection | Data | Required | ||
options | HttpOptions | Options | Optional |
Return Type
Task<HttpResponse>
HttpResponse Put(string url, string data, HttpOptions options = null);
PUTs raw data to a URL.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required | ||
data | string | Data | Required | ||
options | HttpOptions | Options | Optional |
Return Type
HttpResponse Put(string url, NameValueCollection data, HttpOptions options = null);
PUTs key/value pairs to a URL.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required | ||
data | NameValueCollection | Data | Required | ||
options | HttpOptions | Options | Optional |
Return Type
Task<HttpResponse> PutAsync(string url, string data, HttpOptions options = null);
PUTs raw data to a URL.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required | ||
data | string | Data | Required | ||
options | HttpOptions | Options | Optional |
Return Type
Task<HttpResponse>
Task<HttpResponse> PutAsync(string url, NameValueCollection data, HttpOptions options = null);
PUTs key/value pairs to a URL.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required | ||
data | NameValueCollection | Data | Required | ||
options | HttpOptions | Options | Optional |
Return Type
Task<HttpResponse>