Expand description
A HTTP client for use with Crux
crux_http allows Crux apps to make HTTP requests by asking the Shell to perform them.
This is still work in progress and large parts of HTTP are not yet supported.
Re-exports§
pub use crate::protocol::HttpRequest;pub use crate::protocol::HttpResponse;pub use http;pub use mime;
Modules§
- client
- command
- The Command based API for
crux_http - middleware
- Middleware types
- protocol
- The protocol for communicating with the shell
- testing
Structs§
- Body
- An in-memory HTTP request body with an optional MIME type.
- Config
- Configuration for
crux_http::Https and their underlying HTTP client. - Http
- Method
- The Request Method (VERB)
- RawResponse
- An in-memory HTTP response as returned by the shell, used in the middleware chain.
- Request
- An HTTP request, returns a
Response. - Request
Builder - Request Builder
- Response
- An HTTP Response that will be passed to an app’s update function.
- Url
- A parsed URL record.
Enums§
- Http
Error - An error produced when an HTTP request fails.