pub struct HandlerService { /* private fields */ }Implementations§
Source§impl HandlerService
impl HandlerService
pub fn new( http_block: Arc<HttpBlock>, access_logger: Arc<AccessLogger>, acme_store: Option<ChallengeStore>, is_tls: bool, timeouts: &TimeoutSettings, ) -> Self
Sourcepub async fn handle(
&self,
req: Request<Incoming>,
remote_addr: SocketAddr,
) -> Response<Full<Bytes>>
pub async fn handle( &self, req: Request<Incoming>, remote_addr: SocketAddr, ) -> Response<Full<Bytes>>
HTTP/1.x and HTTP/2 entry point (streaming hyper body).
Sourcepub async fn handle_h3(
&self,
req: Request<()>,
body: Bytes,
remote_addr: SocketAddr,
) -> Response<Full<Bytes>>
pub async fn handle_h3( &self, req: Request<()>, body: Bytes, remote_addr: SocketAddr, ) -> Response<Full<Bytes>>
HTTP/3 entry point. The h3 layer hands us a Request<()> (pseudo-headers
already lifted into the URI) plus the body collected separately. We
derive a Host header from the :authority (invariant 50 — authority
consistency) when one is absent, then run the shared pipeline.
Sourcepub async fn handle_collected(
&self,
req: Request<Bytes>,
remote_addr: SocketAddr,
) -> Response<Full<Bytes>>
pub async fn handle_collected( &self, req: Request<Bytes>, remote_addr: SocketAddr, ) -> Response<Full<Bytes>>
Shared pipeline for a fully-buffered request: security checks, decompression guard, host policy, rewrites, GeoIP stamping, routing. Public so integration tests can exercise policy without a listener.
Auto Trait Implementations§
impl !Freeze for HandlerService
impl !RefUnwindSafe for HandlerService
impl !UnwindSafe for HandlerService
impl Send for HandlerService
impl Sync for HandlerService
impl Unpin for HandlerService
impl UnsafeUnpin for HandlerService
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more