Function ark_api::http_request::http_request
source · [−]pub fn http_request(
method: Method,
url: &str,
body: &[u8]
) -> impl Future<Output = ResponseResult>
Expand description
Issue async HTTP request of the specific method
It is generally preferred to use the more explicit short-hand functions such as http_get
, http_post
instead.
Returns
On badly-formed URL or
On 404 error this will return Error::NotFound