Pudu programming language
Menu

Std.Http.Server.Route.routing

1 declaration

fn

routing: &Array[Std.Http.Server.Route.Route] -> Std.Http.Server.Route.Router

This is a callable function.

What it does

A router over a list of routes.

Routes are tried in the order given, so a pattern that could also match an

earlier one never will. That is a rule a reader applies by reading down the

list, which the alternative — the most specific pattern wins — is not: it

asks the reader to compare every pattern against every other.

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.RouteSearch related declarations