3 releases (breaking)

new 0.3.0-rc.0 Apr 18, 2025
0.2.0 Feb 13, 2025
0.1.0 Feb 12, 2025

#706 in HTTP server

Download history 313/week @ 2025-02-12 122/week @ 2025-02-19 60/week @ 2025-02-26 54/week @ 2025-03-05 43/week @ 2025-03-12 55/week @ 2025-03-19 91/week @ 2025-03-26 27/week @ 2025-04-02 6/week @ 2025-04-09

186 downloads per month
Used in pubky-testnet

MIT license

9KB
146 lines

HTTP Relay

A Rust implementation of some of Http relay spec.

Normally you are better off running the reference implementation's binary.

This implementation, for the time being is meant for having a convenient library to be used in unit tests, and testnets in Pubky.

Usage

#[tokio::main]
async fn main() {
    let http_relay = http_relay::HttpRelay::builder()
        .http_port(15412)
        .build()
        .await
        .unwrap();

    println!(
        "Running http relay {}",
        http_relay.local_link_url().as_str()
    );

    tokio::signal::ctrl_c().await.unwrap();

    http_relay.shutdown();
}

Dependencies

~12–22MB
~305K SLoC