Function ic_cdk::api::management_canister::http_request::http_request

source ยท
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.

See IC method http_request.

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.