Cargo.toml
:```toml [dependencies] httpfile = "0.1" reqwest = { version = "0.11", features = ["json"] } serde = { version = "1.0", features = ["derive"] } serdejson = "1.0" tokio = { version = "1", features = ["full"] } handlebars = "4" lazystatic="1.4"
[build-dependencies] httpfile-build = "0.1" ```
index.http
with following content:```
//@name my-ip GET https://httpbin.org/ip User-Agent: curl/7.47.0 ```
httpbin.rs
with following content:
// this would include code generated for package hello from .http file
httpfile::include_http!("index");
httpfle::configure()
.httpfile("index.http")
.compile()
.unwrap();
let response = httpbin::my_ip().await?;