Skip to content

ASGI Middleware

lacme.asgi

Pure ASGI middleware for serving HTTP-01 ACME challenge responses.

Intercepts requests to /.well-known/acme-challenge/{token} and returns the key authorization from the challenge handler. All other requests pass through to the inner application unchanged.

ACMEChallengeMiddleware

Pure ASGI middleware that serves HTTP-01 challenge responses.

challenge_middleware

challenge_middleware(app: ASGIApp, handler: HTTP01Handler) -> ACMEChallengeMiddleware

Wrap an ASGI app with ACME HTTP-01 challenge serving.