mist

Functions

pub fn serve(port: Int, handler: fn(
    HandlerMessage,
    LoopState(Option(Timer)),
  ) -> Next(LoopState(Option(Timer)))) -> Result(Nil, StartError)

Helper that wraps the glisten.serve with no state. If you want to just write HTTP handler(s), this is what you want