Pudu programming language
Menu

Std.Http.Server.logging

1 declaration

fn

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

This is a callable function.

What it does

A step that writes a line about every request once its answer is known.

Given as an example of the shape as much as for its own sake: it calls on,

times what it wrapped, and reports afterwards, which is what a step that

only ran before could not do.

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