Pudu programming language
Menu

Std.Http.Server.Route.Handler

1 declaration

type

Handler: Str -> Std.Html.Unsafe

This declaration introduces a public type.

What it does

What a handler is: a request in, a response out, and nothing else.

A handler cannot reach the connection, which is what makes it testable

without one. Every check over a handler in this module's own fixture calls

it directly, and a program's tests can do the same.

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