Sendfile for Tomcat, Apache, Nginx
Dependency :
compile ":sendfile:0.2"
Summary
Allow to use senfile or X-sendfile functionality of web-servers.
Description
Any controller with sendFileService injected receives an additional set of sendFile methods.
- sendFile(File file, Map params=: (+))
- sendFile(String path, Map params=: (+))
- sendFile(byte (+) content, Map params=: (+))
- sendFile(InputStream is, Map params=: (+))
- sendFile(ByteBuffer content, Map params=: (+))
- sendFile(ReadableByteChannel channel, Map params=: (+))
- grails.plugins.sendfile.nginx = true
- grails.plugins.sendfile.apache = true
- grails.plugins.sendfile.tomcat = true