Pudu programming language
Menu

Std.Http.Server.Guard.standard

1 declaration

fn

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]

This is a callable function.

What it does

Every protection, in the order they belong.

The outermost is applied first, so the identity is attached before anything

can fail and the headers are added to whatever answer comes back, including

a refusal. A program that needs one of these to differ writes that one step

itself rather than turning this off.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.
  • & borrows a value for this call instead of moving or copying it.
  • Names inside [ ] are type arguments, such as the item type held by a collection.

Back to Std.Http.Server.GuardSearch related declarations