SealSkin
Server Referencerouters

internal

Endpoints used only by Caddy's forward_auth on the loopback interface.

Caddy refuses /internal/* from clients; these handlers are reached only through the sub-request Caddy makes to 127.0.0.1.

attributelogger
= logging.getLogger(__name__)
attributerouter
= APIRouter(prefix='/internal', include_in_schema=False)
funcresolve_session(session_id, request) -> Response

Authorise a proxied request and tell Caddy where to send it.

paramsession_idstr
paramrequestRequest

Returns

fastapi.Response

An empty 200 response with X-Upstream-Host and X-Upstream-Auth.