Possum#
HTTP request helpers for querying data from your Personal Data Server. The user is responsible for deciding how to send the request and decode the response.
Example#
gleam add gleam_http
possum = { git = "https://tangled.org/kacaii.dev/possum", ref = "commit-hash" }
import gleam/http/request
import possum
pub fn build_request() -> request.Request(String) {
request.new()
|> request.set_host("bsky.social")
|> possum.create_session(
"kacaii.dev",
"bsky-app-password",
option.None,
option.None
)
}