Skip to content

Fix: include HTTP headers in Net.serve request record#31

Merged
jaimeam merged 1 commit into
mainfrom
claude/add-headers-net-serve-fWpzJ
Mar 3, 2026
Merged

Fix: include HTTP headers in Net.serve request record#31
jaimeam merged 1 commit into
mainfrom
claude/add-headers-net-serve-fWpzJ

Conversation

@jaimeam

@jaimeam jaimeam commented Mar 3, 2026

Copy link
Copy Markdown
Owner

No description provided.

The request record passed to the handler callback was missing a
"headers" field, causing E4008 "invalid field access: headers" when
Astra programs tried to read incoming HTTP headers (e.g.,
req.headers.get("Authorization")).

Extract headers from tiny_http::Request via .headers() and include
them as a Map(Text -> Text) in the request record alongside the
existing method, path, body, and query fields.

https://claude.ai/code/session_01R4D7SMLBTSb1B4bPu11R3N
@jaimeam jaimeam merged commit 318f49d into main Mar 3, 2026
5 of 6 checks passed
@jaimeam jaimeam deleted the claude/add-headers-net-serve-fWpzJ branch March 3, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants