Skip to content

Add support for "file" return args [2.x]#285

Merged
bajtos merged 2 commits into2.xfrom
feature/stream-buffer-returns-2.x
Feb 26, 2016
Merged

Add support for "file" return args [2.x]#285
bajtos merged 2 commits into2.xfrom
feature/stream-buffer-returns-2.x

Conversation

@bajtos
Copy link
Member

@bajtos bajtos commented Feb 26, 2016

A back-port of #284 to 2.x

Fix strongloop/loopback#2063

"returns" arguments mapped to an http header should not be included
in the response body.
Allow users to specify { type: 'file', root: true } for the single
argument that will be sent directly as the response body.

The following values are supported for file the file argument:
 - String
 - Buffer
 - ReadableStream (anything that exposes .pipe() method)
@bajtos bajtos added the #review label Feb 26, 2016
bajtos added a commit that referenced this pull request Feb 26, 2016
…-2.x

Add support for "file" return args [2.x]

A back-port of #284
@bajtos bajtos merged commit 7e9aea5 into 2.x Feb 26, 2016
@bajtos bajtos deleted the feature/stream-buffer-returns-2.x branch February 26, 2016 10:07
@bajtos bajtos removed the #review label Feb 26, 2016
@bajtos
Copy link
Member Author

bajtos commented Feb 26, 2016

Released as strong-remoting@2.26.0.

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.

1 participant