RxNetty
RxNetty copied to clipboard
File Handling
We should add APIs for loading files using Netty so it is easy to create a file server.
There are at least two approaches needed:
- the zero-copy file read/write
- chunked reading for async handling
@benjchristensen is this a good starting point for what you want?
https://github.com/netty/netty/blob/master/example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java
It seems to cover the chunked case in a reasonable way. I actually need this feature or something like it to be able to serve a full web app.
I issued a pull request to solve this in Karyon but will now try to implement in RxNetty instead. I still need to work on the zero-copy file read/write aspect of the solution.
https://github.com/Netflix/karyon/pull/95
Please see #211 for proposed solution