Std.Http.Server.Lambda
17 public declarations
- answer
&Std.Http.Server.Lambda.Runtime -> &Std.Http.Server.Lambda.Invocation -> Str -> Result[(), Std.Http.Server.Lambda.LambdaError]Post an answer for one invocation.
- explain
&Std.Http.Server.Lambda.LambdaError -> StrWhy a loop ended, in words a deployment log can be read by.
- fail
&Std.Http.Server.Lambda.Runtime -> &Std.Http.Server.Lambda.Invocation -> Str -> Result[(), Std.Http.Server.Lambda.LambdaError]Say an invocation could not be answered.
- failedToStart
&Std.Http.Server.Lambda.Runtime -> Str -> Result[(), Std.Http.Server.Lambda.LambdaError]Say the program could not start at all.
- fromEnvironment
Option[Std.Http.Server.Lambda.Runtime]The interface this process was started under, when it was started under one.
- Invocation
One invocation, as the platform hands it over.
- LambdaError
Serving a platform that invokes a program instead of connecting to it.
- nextInvocation
&Std.Http.Server.Lambda.Runtime -> Result[Std.Http.Server.Lambda.Invocation, Std.Http.Server.Lambda.LambdaError]Ask for the next invocation, waiting until there is one.
- Runtime
The interface a platform offers, and the version of it being spoken.
- RUNTIME_ADDRESS_VARIABLE
StrThe variable a platform announces its runtime interface in.
- RUNTIME_VERSION
StrThe version of the interface this module was written against.
- runtimeAt
Str -> Std.Http.Server.Lambda.RuntimeAn interface at a stated address, speaking the version this was written for.
- runtimePath
&Std.Http.Server.Lambda.Runtime -> Str -> StrWhere the interface serves one of its paths.
- serve
&Std.Http.Server.Lambda.Runtime -> fn(Std.Json.Json) -> Result[Str, Str] -> Result[(), Std.Http.Server.Lambda.LambdaError]Take invocations and answer them until the platform stops the process.
- serveEnvironment
fn(Std.Json.Json) -> Result[Str, Str] -> Result[(), Std.Http.Server.Lambda.LambdaError]Serve the interface this process was started under.
- speaking
&Std.Http.Server.Lambda.Runtime -> Str -> Std.Http.Server.Lambda.RuntimeThe same interface, speaking a different version of the protocol.
- underARuntime
BoolWhether this program was started by a platform that invokes it.
