Navar
Navar is a modular, transport-agnostic HTTP client for Rust that separates the HTTP interface from the underlying network transport and runtime.
It allows you to run standard HTTP requests over TCP, TLS, or even P2P streams (like Iroh) without changing your application logic.
Quick Start
use ;
use ;
use ;
async
Core Concepts
- Client: The high-level entry point that holds the configuration and dispatch logic.
- TransportPlugin: Defines how to connect to a remote URI (e.g., TCP, QUIC/Iroh).
- ApplicationPlugin: Defines the protocol handshake and session management (e.g., HTTP/1, HTTP/2).
- AsyncRuntime: An abstraction that allows the client to spawn background tasks on any runtime (Tokio, async-std).