Commit Graph

46 Commits

Author SHA1 Message Date
Anton Maminov e99129ab50 fix process request when a response already closed (#550) 2019-08-05 18:34:26 +03:00
Julien Reichardt 21ab64511a Add allocation optimizations (#487) 2018-11-01 14:29:05 +03:00
Serdar Dogruyol 4bb56d2376 Only clear cached_routes if there's a route 2018-09-17 09:51:56 +03:00
Serdar Dogruyol 1a8a3c5b1d Add cache size limit check to caching routes 2018-09-16 15:43:53 +03:00
Serdar Dogruyol 8fb028149b Cache http routes 2018-09-16 13:22:45 +03:00
Serdar Dogruyol e468e2e340 route_defined? -> route_found? 2018-08-13 19:21:18 +03:00
Serdar Dogruyol 6fbad555d0 Remove unused stuff 2018-03-17 17:58:19 +03:00
Serdar Dogruyol 536108c71b Refactor and fix some docs 2018-03-17 15:35:33 +03:00
Serdar Dogruyol 159e963404 Format with 0.24.1 formatter 2018-01-26 18:32:24 +03:00
Serdar Dogruyol 56d34deef9 Minor refactors 2017-12-08 21:35:02 +03:00
Sijawusz Pur Rahnama 210e2c0801 Prettify docs (#410) 2017-10-06 14:53:53 +03:00
Serdar Dogruyol c2da18ed38 Use .empty? instead 2017-10-06 13:41:22 +03:00
Serdar Dogruyol 84839f4da7 Refactour handler radix names 2017-10-06 12:46:58 +03:00
Serdar Dogruyol 63e613a439 Don't try to call error_handlers if there isn't any 2017-10-05 19:52:57 +03:00
Serdar Dogruyol 61caa077b7 Improve namings 2017-10-02 23:56:02 +03:00
Serdar Dogruyol e07be72dcf Remove ws_routes from route handler 2017-09-10 15:45:57 +03:00
Serdar Dogruyol fe9d193418 Seperate websocket and websocket handler. Fixes #395 2017-09-10 14:41:07 +03:00
Serdar Dogruyol 422313425c Remove redundant intermediate var from process_route 2017-09-04 23:46:53 +03:00
Serdar Dogruyol a1520de7ed Leave tmpfile management to OS 2017-09-04 17:46:09 +03:00
Serdar Dogruyol 79e324efaf Add more types to method signatures 2017-08-25 16:41:02 +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
sdogruyol 9f01eb90e1 Format 2017-05-09 10:46:25 +03:00
Cris Ward 1c527c2d94 return no body for head route fixes #323 (#325) 2017-03-10 13:13:38 +02: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
Serdar Dogruyol 6fe57d5e78 Better file upload 2017-02-11 15:33:42 +02:00
Serdar Dogruyol 81a702264d HTTP::Handler is not a class anymore 2016-12-24 14:22:44 +03:00
Sdogruyol 09d9e708f1 Introduce Kemal::InitHandler to initialize HTTP::Server::Context with defaults 2016-07-17 18:11:26 +03:00
Sdogruyol f7484d14d3 Use nested module declaration 2016-07-17 14:43:13 +03:00
Sdogruyol 0c46bd65da Add X-Powered-By header 2016-06-19 03:22:55 +03:00
sdogruyol f92d812c32 Format 2016-06-15 08:58:14 +03:00
Sdogruyol 92d7273759 Inherit response.content type from filter if it's given. Fixes #146. 2016-05-14 11:07:19 +03:00
sdogruyol 76b5add665 Don't write to context in case of an exception 2016-05-05 23:22:58 +03:00
sdogruyol e6d9311895 Start implementing error block 2016-05-05 22:35:36 +03:00
sdogruyol b4bc818490 Update handler 2016-04-12 17:35:29 +03:00
sdogruyol c47c9488fe Return string from context 2016-04-12 17:15:43 +03:00
sdogruyol 05e44e68c6 Updating to instance types 2016-04-12 14:41:09 +03:00
Joris Moriau 8f6b00ba55 decoupled-urlparams-from-routehandler 2016-02-19 12:45:25 +01:00
Joris Moriau c5201f01ad added verb for filters and minor improvements 2016-02-17 10:34:01 +01:00
Sdogruyol 092f5a2e49 Improve kemal.cr 2016-02-14 15:15:52 +02:00
Joris Moriau f7975d917d decoupled errors from route-handler 2016-02-14 12:52:32 +01:00
Sdogruyol 88aa9cd497 Remove call_next from RouteHandler 2016-02-14 11:02:16 +02:00
sdogruyol 3c75d727ba Complete decoupling logger 2016-02-12 14:11:34 +02:00
Sdogruyol 850af8819e Start decoupling logger 2016-02-11 23:26:47 +02:00
Sdogruyol ffc3d6d224 Don't require yaml 2016-02-10 22:02:10 +02:00
Sdogruyol 467a1b4581 Rename handlers 2016-02-03 22:08:54 +02:00
Renamed from src/kemal/handler.cr (Browse further)