Pudu programming language
Menu

Std.Http.Server.Route.dispatch

1 declaration

fn

dispatch: &Std.Http.Server.Route.Router -> Std.Http.Server.Route.Request -> Std.Http.Response

This is a callable function.

What it does

Send a request through a router.

A path that matches a route written for another method answers that the

method is not allowed rather than that the path is not there. The two are

different to a client: one is a mistake in the request, and the other says

the thing does not exist.

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.

Back to Std.Http.Server.RouteSearch related declarations