Function get
Source pub async fn get(url: impl AsRef<str>) -> Result<Response, ErrorCode>
Available on crate feature http only.
Expand description
Sends a GET request to the given URL.
This is a convenience wrapper around send that issues a GET request
to the provided URL.
§Examples
ⓘlet resp = spin_sdk::http::get("https://example.com").await?;