Acute.Services.IHttp
Allows communication with HTTP servers.
Task<HttpResponse> RequestAsync(HttpRequest request)
General method to perform an asynchronous HTTP request.
Param | Type | Details |
request | HttpRequest | Relative or absolute URL specifying the destination of the request |
Task<HttpResponse> GetAsync(string url)
Shortcut method to perform GET request.
Param | Type | Details |
url | string | Relative or absolute URL specifying the destination of the request |
Task<HttpResponse>
Task<HttpResponse> PostAsync(string url, object data)
Shortcut method to perform POST request.
Param | Type | Details |
url | string | Relative or absolute URL specifying the destination of the request |
data | object | Request data |
Task<HttpResponse> PutAsync(string url, object data)
Shortcut method to perform PUT request.
Param | Type | Details |
url | string | Relative or absolute URL specifying the destination of the request |
data | object | Request data |
Task<HttpResponse> HeadAsync(string url)
Shortcut method to perform HEAD request.
Param | Type | Details |
url | string | Relative or absolute URL specifying the destination of the request |
Task<HttpResponse> DeleteAsync(string url)
Shortcut method to perform DELETE request.
Param | Type | Details |
url | string | Relative or absolute URL specifying the destination of the request |
Acute.Services.ILocation
Provides two-way binding to the browser's URL. Changes to the URL in the address bar are reflected in the Location service, and changes to Acute.Services.ILocation
are reflected in the browser address bar.
string AbsoluteUrl { get; }
Gets the full URL representation with all segments encoded according to rules specified in RFC 3986.
string Host { get; }
Gets host portion of the current URL.
int Port { get; }
Gets the port of the current URL.
string Protocol { get; }
Gets the protocol of the current URL.
string Path { get; set; }
Gets or sets the path of the current URL.
Path will always begin with a forward-slash (/). It will be added if not present when setting.
string Hash { get; set; }
Gets or sets the hash fragment of the current URL.
JSDictionary<string, string> Search { get; set; }
Gets or sets the search (query string) keys and values.