Pudu programming language
Menu

Std.Http.Server.Guard.traceOf

1 declaration

fn

traceOf: &Std.Http.Server.Route.Request -> Bool -> Std.App.Trace.Trace

This is a callable function.

What it does

The trace a request belongs to, continued from what it carried.

Read here rather than in each handler, so every service in a chain agrees

about what piece of work a request is part of. A request that carried

nothing readable begins a new one rather than being refused: the header is

a diagnostic, and refusing over a malformed diagnostic makes the diagnosis

into the outage.

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