Commit1ad4063aRecorded23 Jul 2026Repositorysigil-http
Bump to 0.18.2: add http-fetch-bytes (byte-faithful in-memory fetch)
Changed
CHANGELOG.md | 17 +++++++++++++++++
package.sgl | 2 +-
2 files changed, 18 insertions(+), 1 deletion(-)Diff
CHANGELOG.mdmodified
@@ -5,6 +5,23 @@ All notable changes to **sigil-http** are documented in this file.
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), 6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7
+8
## [0.18.2] - 2026-07-23+9
+10
### Added+11
+12
- **`http-fetch-bytes`: a byte-faithful, in-memory HTTP fetch.** It returns a+13
response as `{ status, headers, body }` where the body is a raw bytevector and+14
is never decoded to a string, so binary payloads (wasm modules, tarballs,+15
images) round-trip uncorrupted. It preserves header order and duplicates (an+16
ordered alist of lowercased-name/value pairs), so a relay can faithfully+17
forward repeated headers like `Set-Cookie`, and it does not follow redirects+18
(a 3xx is returned as-is, which is what a faithful proxy needs). It handles+19
`Content-Length`, chunked, and connection-close framing, with a+20
single-allocation body assembly. `http-request` stays the string-oriented+21
convenience path; reach for `http-fetch-bytes` when the bytes must survive+22
exactly.+23
+24
25
## [0.18.1] - 2026-07-11 26
27
### Fixedpackage.sglmodified
@@ -5,7 +5,7 @@
5
6
(package 7
name: "sigil-http"−8
version: "0.18.1"+8
version: "0.18.2" 9
sigil: "^0.17.10" 10
description: "HTTP client and server library for Sigil" 11
url: "https://codeberg.org/sigil/sigil-http"