Pudu programming language
Menu

Std.Http.Server.Guard.timeout

1 declaration

fn

timeout: Int -> 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

Request deadline middleware enforcing an execution time budget.

If the wrapped handler does not produce a response within `timeoutMs`,

RFC 7231 status 504 Gateway Timeout is returned immediately to the client.

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