Pudu programming language
Menu

Std.App.Access.routing

1 declaration

fn

routing: &Array[Std.App.Access.Guarded] -> fn(Std.Http.Server.Route.Request) -> Std.App.Access.Principal -> Std.Http.Server.Route.Router

This is a callable function.

What it does

A router over routes that all stated what they require.

The principal is read from each request by the function given here, so

establishing who is asking stays one decision made in one place rather than

something every handler repeats differently.

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.App.AccessSearch related declarations