Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 ✨
- Host: GitHub
- URL: https://github.com/aslilac/stego
- Owner: aslilac
- License: mit
- Created: 2024-01-10T02:38:39.000Z (about 1 year ago)
- Default Branch: trunk
- Last Pushed: 2024-01-10T02:44:36.000Z (about 1 year ago)
- Last Synced: 2024-11-08T23:57:46.954Z (2 months ago)
- Language: Gleam
- Size: 5.86 KB
- Stars: 15
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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 stegopub 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()
})
}
```