pub async fn http_request(
arg: CanisterHttpRequestArgument,
cycles: u128,
) -> CallResult<(HttpResponse,)>
Expand description
Make an HTTP request to a given URL and return the HTTP response, possibly after a transformation.
This call requires cycles payment. The required cycles is a function of the request size and max_response_bytes. Check Gas and cycles cost for more details.