Skip to main content

nanofish_client/
lib.rs

1#![cfg_attr(not(test), no_std)]
2#![doc = include_str!("../README.md")]
3#![warn(missing_docs)]
4
5/// HTTP client implementation and request logic.
6pub mod client;
7/// Error types for HTTP operations.
8pub mod error;
9/// HTTP request handlers and traits.
10pub mod handler;
11/// HTTP header types and helpers.
12pub mod header;
13/// HTTP method enum and helpers.
14pub mod method;
15/// HTTP client configuration options.
16pub mod options;
17/// HTTP request types and parsing.
18pub mod request;
19/// HTTP response types and body handling.
20pub mod response;
21/// HTTP server implementation.
22pub mod server;
23/// Predefined HTTP status codes as per RFC 2616.
24pub mod status_code;
25
26pub use client::{DefaultHttpClient, HttpClient, SmallHttpClient};
27pub use error::Error;
28pub use handler::{HttpHandler, SimpleHandler};
29pub use header::{HttpHeader, headers, mime_types};
30pub use method::HttpMethod;
31pub use options::HttpClientOptions;
32pub use request::HttpRequest;
33pub use response::{HttpResponse, ResponseBody};
34pub use server::{DefaultHttpServer, HttpServer, ServerTimeouts, SmallHttpServer};
35pub use status_code::StatusCode;