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

Add Request.body_file method #14

Closed
yoshuawuyts opened this issue Jul 27, 2019 · 2 comments
Closed

Add Request.body_file method #14

yoshuawuyts opened this issue Jul 27, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@yoshuawuyts
Copy link
Member

Once runtime has a File struct we should have a req.body_file(path) method that streams out the file and uses mime_guess to auto-set the mime type. Would make it really easy to send files over the wire ✨

@yoshuawuyts yoshuawuyts added documentation Improvements or additions to documentation enhancement New feature or request and removed documentation Improvements or additions to documentation labels Jul 27, 2019
@yoshuawuyts
Copy link
Member Author

Actually we can get ahead of this by using blocking IO for now. Added in #15.

@yoshuawuyts
Copy link
Member Author

Done in #15.

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

No branches or pull requests

1 participant