espresso/system

Functions

pub fn exit(a: a) -> Nil
pub fn get_port() -> Int

Returns the port to listen on by reading the “PORT” environtment variable.

Defaults to 3000.

pub fn get_session_secret() -> Result(String, Nil)

Returns the secret used to sign session cookies if this is not set then session encoding/decoding will return a InvalidSecret error.

Search Document