ic-http-types
ic-http-types is a Rust crate that provides types for representing HTTP requests and responses. These types are designed to simplify working with HTTP communication in canister development on the Internet Computer.
Features
HttpRequest: A struct for encapsulating HTTP request details, including method, URL, headers, and body.HttpResponse: A struct for encapsulating HTTP response details, including status code, headers, and body.HttpResponseBuilder: A builder pattern for constructingHttpResponseobjects.
Usage
Add the crate to your Cargo.toml:
[]
= "0.1.0"
Example
use ;
use ByteBuf;
Documentation
For detailed documentation, visit the Rust Docs.
License
This project is licensed under the Apache License 2.0.
Contributing
If you decide to contribute, we encourage you to announce it on the Forum!