Skip to content

Native HTTP: stream response bodies so plugins can consume SSE / fetch() ReadableStream #2827

Description

@bajrangCoder

Check for existing issues

  • Completed

Describe the feature

cordova.plugin.http.sendRequest currently buffers the entire response before the success callback. Plugins that talk to LLM APIs (OpenAI, Anthropic, OpenRouter, Gemini, xAI, …) therefore cannot do real HTTP SSE.

Please add a streaming body path to the native HTTP plugin. Native code should not parse SSE. It should deliver bytes/text as they arrive so JS can wrap the result as a WHATWG Response with a ReadableStream body.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

Status
Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions