Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aslilac/stego

Deno.serve for Gleam ✨
https://github.com/aslilac/stego

Last synced: about 1 month ago
JSON representation

Deno.serve for Gleam ✨

Awesome Lists containing this project

README

        

# Stego

`Deno.serve` for Gleam ✨

[Read the documentation](https://hexdocs.pm/stego)

```gleam
import gleam/http/response
import gleam/javascript/promise
import stego

pub fn main() {
stego.serve(fn (_request) {
response.new(200)
|> response.set_header("content-type", "text/html; charset=utf-8")
|> response.set_body("

hoi!

")
|> promise.resolve()
})
}
```