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

How to request binary files? #155

Open
raydenx opened this issue Jul 17, 2019 · 1 comment
Open

How to request binary files? #155

raydenx opened this issue Jul 17, 2019 · 1 comment
Labels

Comments

@raydenx
Copy link

raydenx commented Jul 17, 2019

Can you provide an example how to request binary files? Normally, with http module I would do this:

http.get({...}, (res) => {
// Use res.pipe() or res.on('data', ..) here but neither of them is working with resilient
});

@h2non h2non added the question label Jul 18, 2019
@h2non
Copy link
Contributor

h2non commented Jul 18, 2019

Resilient was not designed to operate with binary, potentially large, responses that can rely on streams. You can reply on the buffered body, if available, instead of streams. If the response is large, you should probably use a different library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants