pub async fn http_request(
arg: &HttpRequestArgs,
) -> Result<HttpRequestResult, Error>Expand description
Makes an HTTP outcall.
Unbounded-wait call
§Note
HTTP outcall costs cycles which varies with the request size and the maximum response size.
This method attaches the required cycles (detemined by cost_http_request) to the call.
Check HTTPS outcalls cycles cost for more details.