Skip to content

uip-draft: streaming HTTP client responses#86

Open
niblyx-malnus wants to merge 1 commit intourbit:mainfrom
niblyx-malnus:uip-streaming-http-client
Open

uip-draft: streaming HTTP client responses#86
niblyx-malnus wants to merge 1 commit intourbit:mainfrom
niblyx-malnus:uip-streaming-http-client

Conversation

@niblyx-malnus
Copy link
Copy Markdown

Proposal for opt-in streaming HTTP client responses via x-urbit-stream request header.

When a request includes an x-urbit-stream header, the runtime delivers response headers and body chunks incrementally as %start / %continue events instead of buffering the entire response into a single %finished event. On connection failure, streaming requests receive %cancel instead of a fabricated 504.

No Hoon-side type changes required — the %start, %continue, and %cancel variants of http-event already exist. The runtime simply uses them in a new delivery sequence.

Reference implementation: urbit/vere#976.

@niblyx-malnus niblyx-malnus changed the title UIP: Streaming HTTP Client Responses UIP: Streaming HTTP client responses Mar 16, 2026
@niblyx-malnus niblyx-malnus changed the title UIP: Streaming HTTP client responses uip-draft: streaming HTTP client responses Mar 16, 2026
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