pingora_core::modules::http

Trait HttpModuleBuilder

Source
pub trait HttpModuleBuilder {
    // Required method
    fn init(&self) -> Module;

    // Provided method
    fn order(&self) -> i16 { ... }
}
Expand description

Trait to init the http module ctx for each request

Required Methods§

Source

fn init(&self) -> Module

Initialize and return the per request module context

Provided Methods§

Source

fn order(&self) -> i16

The order the module will run

The lower the value, the later it runs relative to other filters. If the order of the filter is not important, leave it to the default 0.

Implementors§