howdy

Package Version Hex Docs

A simple but powerful webserver build on top of Cowboy. Howdy’s goal is to make create web servers using Gleam as easy as it can be.

Installation

If available on Hex this package can be added to your Gleam project:

gleam add howdy

and its documentation can be found at https://hexdocs.pm/howdy.

Quick Start

import gleam/erlang
import howdy/server
import howdy/router.{Get}
import howdy/response

pub fn main() {
    let _ = server.start(Get("/", fn(_) { response.of_string("Hello, World!") }))
    erlang.sleep_forever()
}

See router documentation for more details here