MCPcopy 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

1use crate::{hteapot::HttpResponseCommon, utils::Context};
2
3pub trait Handler {
4 fn run(&self, context: &mut Context) -> Box<dyn HttpResponseCommon>;
5}
6
7pub trait HandlerFactory {
8 fn is(context: &Context) -> Option<Box<dyn Handler>>;

Callers

nothing calls this directly

Implementers 2

file.rssrc/handler/file.rs
proxy.rssrc/handler/proxy.rs

Calls

no outgoing calls

Tested by

no test coverage detected