Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#6] Support streaming proxied responses #7

Merged
merged 3 commits into from
Jan 28, 2024
Merged

Conversation

cmorten
Copy link
Owner

@cmorten cmorten commented Jan 28, 2024

Issue

Fixes #6

Details

Proxy requests and user responses are now piped/streamed/chunked by default.

If you define a response modifier (srcResDecorator, srcResHeaderDecorator),
or need to inspect the response before continuing (filterRes), streaming is
disabled, and the request and response are buffered. This can cause performance
issues with large payloads.

This follows precedent set by express-http-proxy.

CheckList

  • PR starts with [#ISSUE_ID].
  • Has been tested (where required) before merge to main.

@cmorten cmorten changed the title [#6] support streaming proxied responses [#6] Support streaming proxied responses Jan 28, 2024
@cmorten cmorten merged commit 6eef007 into main Jan 28, 2024
3 checks passed
@cmorten cmorten deleted the support-streaming branch January 28, 2024 22:04
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.

Iis it possible to proxy streaming responses?
1 participant