pub async fn http_request(
    arg: CanisterHttpRequestArgument
) -> 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. See source code for the exact function.

See IC method http_request.