I would like to migrate (PR) the deprecated ic_cdk::api::management_canister::http_request::http_request to ic_cdk::management_canister::http_request, which, I assume, was introduced in ic_cdk@0.18.
I’ve figured out the new imports and renamed arguments, but I can’t find any field to specify the cycles for payment.
// This function takes 1 parameter, but 2 parameters were supplied [E0061]
match http_request(&args, MY_CYCLES).await {
I vaguely remember that starting from a certain version, specifying cycles for HTTPS outcalls was no longer required. However, I can’t find any documentation confirming this neither in the ic_cdk CHANGELOG nor in the migration guide.
Is this assumption correct and the documentation is simply missing (or I am missing the entry), or is it incorrect and I should be using another function to perform an HTTP request with the latest ic_cdk?