glen_node

Types

pub type Server

Functions

pub fn close(server: Server) -> Promise(Nil)
pub fn serve(
  port: Int,
  handler: fn(Request(RequestBody)) ->
    Promise(Response(ResponseBody)),
) -> Result(Server, String)
Search Document