Commit graph

169 commits

Author SHA1 Message Date
Serdar Dogruyol
5d737ee8f3 Rename common_log_handler and common_exception_handler 2017-10-06 20:34:18 +03:00
Serdar Dogruyol
84839f4da7 Refactour handler radix names 2017-10-06 12:46:58 +03:00
Serdar Dogruyol
0b07070237 Don't initiliaze server if it's already initialized 2017-10-04 19:51:14 +03:00
Serdar Dogruyol
61caa077b7 Improve namings 2017-10-02 23:56:02 +03:00
Cris Ward
30bdcc9759 only return strings from routes fixes #374 (#408) 2017-10-02 23:47:43 +03:00
Serdar Dogruyol
00981bcf44 Improve websocket match logic. Fixes #401 2017-09-14 19:59:22 +03:00
Serdar Dogruyol
5f834f8873 Use expect_raises for websocket handler spec 2017-09-10 15:04:51 +03:00
Serdar Dogruyol
fe9d193418 Seperate websocket and websocket handler. Fixes #395 2017-09-10 14:41:07 +03:00
Serdar Dogruyol
efd97b75f9 Refactor 2017-08-24 18:52:10 +03:00
Sdogruyol
607aaeffe3 Allow headers in built-in static file server 2017-08-22 15:29:51 +03:00
Sdogruyol
3fd3349383 Don't raise on WS route not found 2017-08-21 12:38:28 +03:00
Sdogruyol
2b604dfb30 Add context to WebSocket. This allows one to use context.params like url,query, body e.g 2017-08-20 20:01:49 +03:00
Will Leinweber
5a83522866 allow %w in Handler macros (#385) 2017-08-18 10:19:21 +03:00
sdogruyol
1d056b203b Dynamically insert handlers. Fixes #376 2017-07-11 11:22:35 +03:00
sdogruyol
66612eeb04 Match should eq nil not be 2017-06-05 15:34:27 +03:00
sdogruyol
62946fd987 Modularize handlers 2017-05-12 16:18:50 -07:00
sdogruyol
9f01eb90e1 Format 2017-05-09 10:46:25 +03:00
sdogruyol
e695a491b7 Revert "Modiy HTTP::Params.[] to fetch all params"
This reverts commit c0745cc9e25068e9ce832ca5a79519de516ca4e5.
2017-05-08 17:28:21 +03:00
Rimas Silkaitis
0b4856b741 User defined context store types (#339)
allow the context storage to handle any types
2017-04-06 21:43:41 +03:00
Cris Ward
48128696c6 Prevent send_file returning filesize (#344)
Prevent send_file returning filesize
2017-03-29 15:09:25 +03:00
Faustino Aguilar
f1edf81d95 Remove duplicate spec (#340)
Code duplicate: two specs with the same code.
2017-03-25 19:41:58 +02:00
Marwan Rabbâa
34d5200e80 missing context key (#342) 2017-03-25 19:20:10 +02:00
Serdar Dogruyol
1177619da9 Modiy HTTP::Params.[] to fetch all params (#328) 2017-03-13 16:52:42 +02:00
Sdogruyol
40a8339509 Rename to static_file_handler_spec 2017-02-27 19:28:27 +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
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
Michael Barrett
c08bf71d88 Allow for disabling the shutdown message (#292)
Allow for disabling the shutdown message
2017-01-18 15:55:33 +03:00
Michael Barrett
209a9e576c Add configurable startup logging as a block (#291)
Add overload for Kemal.run with just a block. This removes default logging.
2017-01-15 21:41:07 +03:00
Sdogruyol
ac8ec0a07b Remove redundant session stuff 2016-12-10 19:34:46 +03:00
Sdogruyol
eb64b52f84 Actually there's no middleware anymore 2016-12-04 01:43:30 +03:00
Sdogruyol
66e04ecaec 0.17.3 2016-12-03 17:37:58 +03:00
sdogruyol
b4c10a3f59 Remove basic auth middleware 2016-11-26 21:51:06 +03:00
Serdar Dogruyol
cc44710654 Remove session & csrf from core (#259)
Remove session & CSRF
2016-11-24 16:47:30 +04:00
sdogruyol
6b034c3b2f Rename MemoryIO to IO::Memory since it's deprecated on Crystal 0.20.0 2016-11-22 23:29:10 +03:00
sdogruyol
012ac8f6b7 Yield error in custom error handlers 2016-11-16 20:27:01 +03:00
sdogruyol
8ec9ed8331 Improve docs 2016-11-10 16:38:29 +03:00
Serdar Dogruyol
ec11698ab1 Only / Exclude Paths in Middleware (#245)
Add only / exclude paths in Middlewares
2016-11-09 19:18:39 +04:00
sdogruyol
4267a5eea9 Set default exception Content-Type to text/html. Fixes #202 2016-11-06 11:58:18 +03:00
sdogruyol
87d88318de Rename to Kemal::Exceptions::InvalidPathStartException 2016-11-04 11:49:11 +03:00
sdogruyol
e6810c4516 Route declaration must start with / fixes #242 2016-11-04 11:12:59 +03:00
sdogruyol
d676b559d2 Rename return_with as halt for clear intention 2016-11-01 11:46:13 +03:00
Serdar Dogruyol
922d6de4d1 Middleware ordering (#236)
Improve and correct request middleware

 Request -> Middleware -> Filter -> Route
2016-10-28 11:35:34 +03:00
Sam Eaton
e43b2a3a01 Decodes url parameters (#229)
Decode url parameters
2016-10-18 16:28:42 +03:00
sdogruyol
7efe69ac31 Add multipart support <3 2016-10-01 18:18:28 +03:00
Sdogruyol
e2c99bcfb8 Remove array support from session for now 2016-09-30 14:03:29 +03:00
Sdogruyol
a8e53fb94e Session also supports arrays 2016-09-30 14:03:29 +03:00
Sdogruyol
8c600cb26e Make session name and expire time configurable 2016-09-30 14:03:29 +03:00
Sdogruyol
6d4bf575cb Make session accept more types 2016-09-30 14:03:29 +03:00
Cris Ward
a8cc4f4177 gzip static files options dir listing and etags
format
2016-09-18 01:46:16 +01:00