pub async fn pay(
wallet: &dyn WalletAccess,
url: &str,
method: &str,
body: Option<&str>,
) -> Result<PayResult, PayError>Expand description
Make an HTTP request with automatic payment handling.
Fires the request. If the server returns 402, detects the payment protocol from the response and handles payment.