cdk-http-client
HTTP client abstraction for the Cashu Development Kit (CDK).
This crate provides an HTTP client wrapper that abstracts the underlying HTTP library (reqwest), allowing other CDK crates to avoid direct dependencies on reqwest.
Usage
use ;
use Deserialize;
async
API
Builder methods (return RequestBuilder):
get(url)- GET request builderpost(url)- POST request builderpatch(url)- PATCH request builder
Convenience methods (return deserialized JSON):
fetch<R>(url)- simple GET returning JSONpost_json<B, R>(url, body)- POST with JSON bodypost_form<F, R>(url, form)- POST with form datapatch_json<B, R>(url, body)- PATCH with JSON body