Std.Http.Server.Lambda.serveEnvironment
fn
serveEnvironment: fn(Std.Json.Json) -> Result[Str, Str] -> Result[(), Std.Http.Server.Lambda.LambdaError]This is a callable function.
What it does
Serve the interface this process was started under.
What a program written only for a platform calls. A program that also runs as
a listener asks `fromEnvironment` itself and decides.
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.
- Names inside [ ] are type arguments, such as the item type held by a collection.
- Result makes success and recoverable failure part of the function's type.
