Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Az107/HTeaPot
/ Handler
Interface
Handler
src/handler/handler.rs:3–5 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
use crate::{hteapot::HttpResponseCommon, utils::Context};
2
3
pub trait Handler {
4
fn run(&self, context: &mut Context) -> Box<dyn HttpResponseCommon>;
5
}
6
7
pub trait HandlerFactory {
8
fn is(context: &Context) -> Option<Box<dyn Handler>>;
Callers
nothing calls this directly
Implementers
2
file.rs
src/handler/file.rs
proxy.rs
src/handler/proxy.rs
Calls
no outgoing calls
Tested by
no test coverage detected