spacegate-kernel 0.2.0-alpha.4

A library-first, lightweight, high-performance, cloud-native supported API gateway
Documentation
1
2
3
4
5
6
7
8
9
10
use hyper::Request;

use crate::{BoxResult, SgBody};

pub trait Inject {
    /// Inject the request with some data.
    /// # Errors
    /// If the injection fails.
    fn inject(&self, req: &mut Request<SgBody>) -> BoxResult<()>;
}