Skip to content

feat(functions): stream edge function responses - #417

Open
fresh55 wants to merge 3 commits into
supabase-community:masterfrom
fresh55:feat/functions-invoke-stream
Open

feat(functions): stream edge function responses#417
fresh55 wants to merge 3 commits into
supabase-community:masterfrom
fresh55:feat/functions-invoke-stream

Conversation

@fresh55

@fresh55 fresh55 commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Adds InvokeStream on the functions client. It returns the HttpResponseMessage once headers arrive, so a text/event-stream body can be read while the function is still writing. HttpTimeout and the caller token cover the request and any error body, the streamed body is the caller's to cancel and dispose.

RetryExecutor gets an overload taking HttpCompletionOption, the existing one forwards to it. An unread body is still disposed before a retry.

Adds a member to IFunctionsClient, custom implementations need to add it.

closes #416

Comment thread packages/Functions/Functions/Client.cs Outdated
@Tr00d Tr00d self-assigned this Sep 7, 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.

parity(functions): stream text/event-stream responses instead of buffering the body [from supabase-js]

2 participants