Commit Graph

28 Commits

Author SHA1 Message Date
Russell Smith 05d55540b9
Enable option for index.html to be a directories default (#640) 2022-06-30 18:00:51 +03:00
Brian J. Cardiff a8c0f09b85
Upgrade to Crystal 0.35.0 (#570)
* Update to ameba ~> 0.12.0

* Use Compress::Deflate and Compress::Gzip

* Drop unused require

* Fix spec due to defer request upgrade
2020-06-10 21:11:43 +03:00
Sijawusz Pur Rahnama c893172fbf Cleanup ameba warnings (#551) 2019-08-30 14:32:23 +03:00
Brian J. Cardiff 17bf1c7709 Upgrade to Crystal v0.30.0 (#548) 2019-08-03 19:35:40 +03:00
Sijawusz Pur Rahnama 06665e81bc Use Ameba on Travis CI (#520) 2019-06-13 14:31:45 +03:00
Julien Reichardt 21ab64511a Add allocation optimizations (#487) 2018-11-01 14:29:05 +03:00
Rafał Wojsznis 1e18389f5f Remove etag logic as it's not implemented in Crystal 0.25.1 (#470) 2018-07-16 05:54:36 +03:00
Serdar Dogruyol a5870e7d24
Crystal 0.25.0 (#452) 2018-06-16 18:03:00 +03:00
Serdar Dogruyol 79e324efaf Add more types to method signatures 2017-08-25 16:41:02 +03:00
Cris Ward 298a4b234b moved static file handler code to send_file (#330) 2017-03-12 14:38:47 +02:00
Sdogruyol e6af97c256 Make static_file_handler#etag private 2017-02-27 19:21:14 +03:00
Serdar Dogruyol b7ce53e5ab Crystal 0.21.0 support (#304)
Crystal 0.21.0 support
2017-02-21 21:24:11 +02:00
Sdogruyol 9607083e59 Mark inner methods as private 2017-02-13 23:39:40 +03:00
Sdogruyol 476b27892e Early return from range if request type is not GET 2017-02-04 13:35:46 +03:00
Denys Vitali 0543142a10 Add RFC7233 support (#299)
Add RFC7233 support a.k.a "Range" headers support
2017-02-04 13:06:43 +03:00
sdogruyol 733582f724 No need for require though 2016-11-19 00:11:35 +03:00
sdogruyol 23cd325def Move some stuff to Utils 2016-11-19 00:05:22 +03:00
Sam Eaton 875032f0dc removes Content-Type response header if the file is cached
The content-type currently defaults to text/html, which is inaccurate
because no content is being returned. Google, and many popular CDNs
omit the Content-Type header for 304 response.
2016-10-11 15:51:37 -06:00
Cris Ward a8cc4f4177 gzip static files options dir listing and etags
format
2016-09-18 01:46:16 +01:00
sdogruyol 4cd30839a5 Add gzip helper to enable/disable HTTP::DeflateHandler 2016-09-15 19:35:34 +03:00
Cris Ward 6280af2e40 added mime types (#195)
* added mime types

Added some mime type for images. Very new to crystal so hopefully this is ok.
Without this they default to octet, which just does a download

* jpg to jpeg
2016-08-19 17:49:29 +03:00
Sdogruyol f7484d14d3 Use nested module declaration 2016-07-17 14:43:13 +03:00
Sdogruyol b5ff93c677 Add docs 2016-07-17 14:10:56 +03:00
Sdogruyol fdf38b23c8 Update kemal.cr 2016-01-24 13:31:07 +02:00
Sdogruyol 5fb5a4c6ae Small refactor 2016-01-16 12:56:01 +02:00
Sdogruyol 5c97942707 Add more documentation 2015-12-13 10:25:04 +02:00
Sdogruyol 85a383b328 Fix static file handler 2015-12-10 21:20:32 +02:00
Sdogruyol e4da65f1f2 Refactor static file handler 2015-12-10 21:15:28 +02:00