Std.Http.Server.Guard
21 public declarations
- allowing
&Std.Http.Server.Guard.Sharing -> &Array[Str] -> Std.Http.Server.Guard.SharingThe same, permitting different methods.
- audited
&Std.App.Audit.AuditLog -> Str -> fn(Std.Http.Server.Route.Request, fn(Std.Http.Server.Route.Request) -> Std.Http.Response) -> Std.Http.ResponseAudit logging middleware recording security outcomes in the tamper-evident audit ledger.
- boundedConcurrency
Int -> fn(Std.Http.Server.Route.Request, fn(Std.Http.Server.Route.Request) -> Std.Http.Response) -> Std.Http.ResponseBounded concurrent request admission middleware enforcing backpressure.
- circuitBreaker
Int -> Int -> fn(Std.Http.Server.Route.Request, fn(Std.Http.Server.Route.Request) -> Std.Http.Response) -> Std.Http.ResponseCircuit breaker middleware protecting downstream dependencies from cascading failure.
- identified
fn(Std.Http.Server.Route.Request, fn(Std.Http.Server.Route.Request) -> Std.Http.Response) -> Std.Http.ResponseA request identity, carried into the answer.
- identityOf
&Std.Http.Server.Route.Request -> StrThe identity a request carries, or one made for it.
- protectedHeaders
fn(Std.Http.Server.Route.Request, fn(Std.Http.Server.Route.Request) -> Std.Http.Response) -> Std.Http.ResponseThe protective headers, added to whatever the answer was.
- quiet
fn(Str) -> () -> fn(Std.Http.Server.Route.Request, fn(Std.Http.Server.Route.Request) -> Std.Http.Response) -> Std.Http.ResponseA step that answers a refusal the same way whatever caused it.
- rateLimited
Int -> Int -> fn(Std.Http.Server.Route.Request, fn(Std.Http.Server.Route.Request) -> Std.Http.Response) -> Std.Http.ResponseA rate limiting middleware that restricts requests per peer within a moving window.
- redirect
Int -> Str -> &Array[Str] -> Std.Http.ResponseA redirect to somewhere the program named, or a refusal.
- sameSiteOnly
fn(Std.Http.Server.Route.Request, fn(Std.Http.Server.Route.Request) -> Std.Http.Response) -> Std.Http.ResponseA refusal of state-changing requests that came from another site.
- shared
&Std.Http.Server.Guard.Sharing -> fn(Std.Http.Server.Route.Request, fn(Std.Http.Server.Route.Request) -> Std.Http.Response) -> Std.Http.ResponseThe cross-origin permission, from the allowlist and only from it.
- shareNothing
Std.Http.Server.Guard.SharingA service that permits no other origin to read its answers.
- shareWith
&Array[Str] -> Std.Http.Server.Guard.SharingA service that permits the named origins, and nothing else.
- Sharing
Which origins a service permits to read its answers.
- standard
&Std.Http.Server.Guard.Sharing -> Array[fn(Std.Http.Server.Route.Request, fn(Std.Http.Server.Route.Request) -> Std.Http.Response) -> Std.Http.Response]Every protection, in the order they belong.
- strict
Array[fn(Std.Http.Server.Route.Request, fn(Std.Http.Server.Route.Request) -> Std.Http.Response) -> Std.Http.Response]Every protection for a service nothing shares with, which is most of them.
- timeout
Int -> fn(Std.Http.Server.Route.Request, fn(Std.Http.Server.Route.Request) -> Std.Http.Response) -> Std.Http.ResponseRequest deadline middleware enforcing an execution time budget.
- traced
Bool -> fn(Std.Http.Server.Route.Request, fn(Std.Http.Server.Route.Request) -> Std.Http.Response) -> Std.Http.ResponseA step that answers with the trace the request belongs to.
- traceOf
&Std.Http.Server.Route.Request -> Bool -> Std.App.Trace.TraceThe trace a request belongs to, continued from what it carried.
- withCredentials
&Std.Http.Server.Guard.Sharing -> Std.Http.Server.Guard.SharingThe same, for a caller that also sends credentials. A wildcard is not
