Version0.18.2Verifiednot yet verifiedLicenseBSD-3-Clause

sigil-http

HTTP client and server library for Sigil

Report a bug or suggest a feature
Readme

sigil-http

HTTP/1.1 client and server library for Sigil.

Provides HTTP/1.1 support for building web applications and APIs. Primary use cases are serving documentation sites and game server APIs.

This package was extracted from the sigil monorepo — the in-tree history under packages/sigil-http/ is preserved here as master.

Usage

(import (sigil http))

;; Client — GET / POST / PUT / DELETE
(let ((response (http-get "https://example.com/")))
  (display (http-response-body response)))

(http-post "https://api.example.com/users"
           "{\"name\":\"Alice\"}"
           '(("Content-Type" . "application/json")))

;; Server
(http-serve
  port: 8080
  handler: (lambda (request)
             (http-response 200 '(("Content-Type" . "text/plain"))
                            "Hello, world!")))

See docs/http.md for the full API reference, including streaming bodies, Server-Sent Events, and low-level request/response manipulation.

Dependencies

  • sigil-stdlib, sigil-socket, sigil-tls — pinned via from-git against the sigil monorepo (^0.13.1). Resolved automatically by sigil deps install.

Build

sigil deps install
sigil build
sigil test

Development against a local sigil checkout

dev-redirects.sgl redirects codeberg:sigil/sigil to ../sigil. Pass it to the build CLI when you need to test against unreleased monorepo changes:

sigil build --redirects dev-redirects.sgl

Otherwise, let sigil deps install pull the pinned monorepo tag.

License

BSD-3-Clause. See package.sgl for author list.

Clone

$ git clone https://codeberg.org/sigil/sigil-http

Releases

0.18.2 — latest by version, released 23 Jul 2026

All releases — 18 tags in this repository.

Source

Browse the latest source

One page per file, and every line has a permalink.

Recent commitsAtom
1 Augcommit
23 Julcommit
23 Julcommit
11 Julcommit
11 Julcommit
11 Julcommit
10 Julcommit
10 Julcommit
10 Julcommit
10 Julcommit
10 Julcommit
10 Julcommit
7 Julcommit
6 Julcommit
4 Julcommit
30 Juncommit
30 Juncommit
30 Juncommit
30 Juncommit
29 Juncommit

The last 20 commits keep a page here. Everything older lives in the clone.