Pudu programming language
Menu

Std.Http.Server.Route.query

1 declaration

fn

query: Str -> fn(Std.Http.Server.Route.Request) -> Std.Http.Response -> Std.Http.Server.Route.Route

This is a callable function.

What it does

A route for a request carrying its terms in its own body.

Answered like any other route, and the terms are read from the body rather

than from the query. A handler for one is written against `body` where a

handler reached by a target's query is written against `queryParam`.

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.

Back to Std.Http.Server.RouteSearch related declarations