Pudu programming language
Menu

Std.Http.Server.Lambda.fromEnvironment

1 declaration

fn

fromEnvironment: Option[Std.Http.Server.Lambda.Runtime]

This is a callable function.

What it does

The interface this process was started under, when it was started under one.

Absent everywhere else, which is how a program tells the two apart: serve the

loop when there is an interface to ask, and open a listener when there is

not. The same program then runs under a platform and on a developer's machine

without being built differently for each.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Names inside [ ] are type arguments, such as the item type held by a collection.
  • Option holds Some(value) or None when no value is available.

Back to Std.Http.Server.LambdaSearch related declarations