RxNetty icon indicating copy to clipboard operation
RxNetty copied to clipboard

File Handling

Open benjchristensen opened this issue 10 years ago • 3 comments

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:

  1. the zero-copy file read/write
  2. chunked reading for async handling

benjchristensen avatar Jul 29 '14 03:07 benjchristensen

@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.

gorzell avatar Aug 06 '14 21:08 gorzell

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

elandau avatar Aug 11 '14 17:08 elandau

Please see #211 for proposed solution

elandau avatar Aug 19 '14 19:08 elandau