No description
Find a file
2024-03-20 22:48:01 +11:00
.github/workflows Initial commit 2024-03-20 19:45:57 +11:00
src/typed_headers Refactor codec logic 2024-03-20 22:47:49 +11:00
test Refactor and improve type naming 2024-03-20 22:12:04 +11:00
.gitignore Initial commit 2024-03-20 19:45:57 +11:00
gleam.toml Bump version 2024-03-20 22:48:01 +11:00
manifest.toml Initial commit 2024-03-20 19:45:57 +11:00
README.md Refactor and improve type naming 2024-03-20 22:12:04 +11:00

typed_headers

Package Version Hex Docs

gleam add typed_headers
import gleam/list
import typed_headers/header
import typed_headers/content_type
import typed_headers/content_type/application

pub fn main() {
  let headers =
  [header.ContentType(content_type.Application(application.JSON))]
  |> list.map(typed_headers.to_string)
}

Further documentation can be found at https://hexdocs.pm/typed_headers.

Development

gleam run   # Run the project
gleam test  # Run the tests
gleam shell # Run an Erlang shell