tortuga 0.7.2

A Rust-based CGI-specific HTTP web server.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::context::RequestContext;
use bytes::Bytes;
use std::future::Future;
use std::io;

mod process;
mod wasm;

pub use process::Process;
pub use wasm::Wasm;

pub trait Script {
    fn invoke(
        &self,
        context: RequestContext,
        body: Bytes,
    ) -> impl Future<Output = io::Result<Bytes>> + Send;
}