Download node-graph/gstd/src/http.rs from openfree/graphite2: direct link, hf CLI and curl.
- Browser
- Download file 376 Bytes
-
https://huggingface.co/spaces/openfree/graphite2/resolve/main/node-graph/gstd/src/http.rs
- Command line
-
hf download hf://spaces/openfree/graphite2/node-graph/gstd/src/http.rs
-
curl -L -o http.rs https://huggingface.co/spaces/openfree/graphite2/resolve/main/node-graph/gstd/src/http.rs
376 Bytes
| use graphene_core::Ctx; | |
| async fn get_request(_: impl Ctx, url: String) -> reqwest::Response { | |
| reqwest::get(url).await.unwrap() | |
| } | |
| async fn post_request(_: impl Ctx, url: String, body: String) -> reqwest::Response { | |
| reqwest::Client::new().post(url).body(body).send().await.unwrap() | |
| } | |