Commit graph

  • 849eda06c8 Don't round to seconds/minutes in CommonLogHandler Sdogruyol 2016-08-14 14:52:50 +03:00
  • aea70fd1e5 No need to dup headers Sdogruyol 2016-08-13 17:54:11 +03:00
  • ad571db682 Rename view.cr to templates.cr and move it under helpers Sdogruyol 2016-08-13 17:43:18 +03:00
  • a6678f6622 Use String#starts_with? instead of String#[]? (#194) Sijawusz Pur Rahnama 2016-08-12 21:17:57 +02:00
  • 28859fbdb8 Fix parsing JSON params when "charset" is present in "Content-Type" header (#193) Sijawusz Pur Rahnama 2016-08-11 21:29:29 +02:00
  • d4e96c7b44 Add spec for send_file binary Sdogruyol 2016-08-08 21:49:47 +03:00
  • 31cc9fbff4 Add send_file helper variation for sending raw data (#188) Sijawusz Pur Rahnama 2016-08-08 20:15:43 +02:00
  • f6747be691 Merge pull request #189 from Sija/patch-2 Serdar Dogruyol 2016-08-08 10:38:24 +03:00
  • 4397a3c7fd Use Response#content_type= Sijawusz Pur Rahnama 2016-08-08 04:17:58 +02:00
  • 98199f96f8 Merge pull request #185 from raydf/master Serdar Dogruyol 2016-08-07 14:25:47 +03:00
  • 0b92a7fd6c Use http-only cookie for session Rayner De Los Santos F 2016-08-02 23:41:45 -04:00
  • e5a9035a61 Add doc to CommonLogHandler sdogruyol 2016-08-02 13:39:01 +03:00
  • 1705852f25 Inject STDOUT by default in CommonLogHandler Sdogruyol 2016-08-01 23:21:19 +03:00
  • 98efbfe341 Improve logging and specs Sdogruyol 2016-07-28 21:12:55 +03:00
  • dc3cc74798 Add more specs to common_exception_handler Sdogruyol 2016-07-19 23:29:00 +03:00
  • 676ed2aa67 Use send_file in built-in image handler Sdogruyol 2016-07-19 21:01:49 +03:00
  • 5e297d86f8 Add send_file to helpers Sdogruyol 2016-07-19 20:58:04 +03:00
  • b00bc7a202 Add next handler to init_handler_spec Sdogruyol 2016-07-17 20:42:00 +03:00
  • d1c788f065 Don't override content_type in Kemal::InitHandler if it's already set Sdogruyol 2016-07-17 20:23:45 +03:00
  • 646edb24ca Set Content-Type after call_next in Kemal::InitHandler Sdogruyol 2016-07-17 19:04:03 +03:00
  • 3e3200e23e Oops, forgot call_next(context) on Kemal::InitHandler Sdogruyol 2016-07-17 18:15:12 +03:00
  • 09d9e708f1 Introduce Kemal::InitHandler to initialize HTTP::Server::Context with defaults Sdogruyol 2016-07-17 18:11:26 +03:00
  • 725e051723 Document helpers Sdogruyol 2016-07-17 17:06:49 +03:00
  • f7484d14d3 Use nested module declaration Sdogruyol 2016-07-17 14:43:13 +03:00
  • 4edebcf8eb Format Sdogruyol 2016-07-17 14:31:45 +03:00
  • 6ffa4af0e1 Remove redundat http require and move it to kemal.cr Sdogruyol 2016-07-17 14:28:21 +03:00
  • d11b702ee4 More docs Sdogruyol 2016-07-17 14:26:22 +03:00
  • 8aab44f7cd Fix typo Sdogruyol 2016-07-17 14:13:05 +03:00
  • b5ff93c677 Add docs Sdogruyol 2016-07-17 14:10:56 +03:00
  • 09d82ed74b Add context store Sdogruyol 2016-07-14 21:56:01 +03:00
  • c9714faab3 Bump version Sdogruyol 2016-07-13 21:24:44 +03:00
  • dee1d1c58b Make macro variables local sdogruyol 2016-07-13 16:24:25 +03:00
  • fb5ac9e0b6 Don't remove #write from common_log_handler sdogruyol 2016-07-13 14:42:41 +03:00
  • 24e0824a9b Better view_specs for layout variables Sdogruyol 2016-07-12 00:09:01 +03:00
  • e6e70fe222 Don't load unless caller and content matches for content_for Sdogruyol 2016-07-10 15:01:00 +03:00
  • ce2ffed705 Don't yield content if there's not any content_for it Sdogruyol 2016-07-10 13:24:38 +03:00
  • f3175bdb72 Split helpers.cr into helpers/macros.cr and helpers/helpers.cr Sdogruyol 2016-07-10 13:03:09 +03:00
  • daac09a859 Add doc for content_for Sdogruyol 2016-07-10 13:00:13 +03:00
  • 51d6da5cc0 Merge pull request #178 from sdogruyol/content-for Serdar Dogruyol 2016-07-09 19:59:49 +03:00
  • 21b194a901 Add content_for and yield_content helpers <3. Thanks @RX14 Sdogruyol 2016-07-09 19:54:35 +03:00
  • 73d6123f3d WIP Sdogruyol 2016-07-09 18:57:35 +03:00
  • 2af03085d2 Bump version to 0.14.0 in shard.yml Sdogruyol 2016-07-09 14:15:01 +03:00
  • 3ea6a01afc Remove file handler from CommonLogHandler. Log only to STDOUT. Fixes #159 Sdogruyol 2016-07-05 22:14:00 +03:00
  • 9d84d51975 No need to rewind STDOUT and File handler in CommonLogHandler Sdogruyol 2016-07-05 20:15:36 +03:00
  • ae25d0a774 Optimize CommonLogHandler to directly use the handler instead of string interpolation Sdogruyol 2016-07-05 20:11:03 +03:00
  • 212ea8707d Merge branch 'benjolitz-additional_options_closure' Sdogruyol 2016-07-04 20:23:40 +03:00
  • 20a174b66e Add extra_options from CLI Sdogruyol 2016-07-04 20:23:16 +03:00
  • 2c0dc7fa63 Read env from KEMAL_ENV instead of -e. Fixes #168 Sdogruyol 2016-07-03 23:49:16 +03:00
  • 19581d6e3e Improve common_exception_handler to handler custom 500 errors. Fixes #175. Sdogruyol 2016-07-03 11:13:11 +02:00
  • c718b02dbc Merge pull request #172 from mperham/master Serdar Dogruyol 2016-06-30 10:11:03 +02:00
  • 22d6c1773e Remove HTTP prefix, this is a Rack impl convention, not a standard. Mike Perham 2016-06-29 14:52:47 -07:00
  • 8f5736a057 Need to initialize the session token or forms won't render Mike Perham 2016-06-28 16:46:45 -07:00
  • e407d0195c Implement CSRF protection Mike Perham 2016-06-28 15:50:43 -07:00
  • 7e49237468 Merge pull request #170 from mperham/master Serdar Dogruyol 2016-06-28 16:55:02 +03:00
  • 46b4dc6524 Add Session#delete, more docs Mike Perham 2016-06-27 16:24:03 -07:00
  • 94db0c8cb8 Implement basic in-memory session store Mike Perham 2016-06-27 14:37:40 -07:00
  • 0c46bd65da Add X-Powered-By header Sdogruyol 2016-06-19 03:22:55 +03:00
  • 56067b6280 Merge pull request #165 from MGerrior/add_headers_helper_method Serdar Dogruyol 2016-06-16 17:35:38 +03:00
  • fbbb43dcab Add "headers" helper to make it easier to add headers to response. Matthew Gerrior 2016-06-16 10:05:28 -04:00
  • c492ede5d3 Add LICENSE sdogruyol 2016-06-15 09:09:48 +03:00
  • f92d812c32 Format sdogruyol 2016-06-15 08:58:14 +03:00
  • e9665c124b Merge pull request #162 from omarroth/fix-0.18 Serdar Dogruyol 2016-06-15 08:54:32 +03:00
  • ac4a5afc05 Fix ssl and specs for 0.18 Omar Roth 2016-06-14 16:18:00 -05:00
  • 74044d62e9 Merge pull request #161 from MGerrior/allow_multiple_values_for_params Serdar Dogruyol 2016-06-14 19:08:46 +03:00
  • d1f9c4394b Opt for built-in HTTP::Params class instead. Matthew Gerrior 2016-06-14 07:32:13 -04:00
  • a5e4bc21f3 Allow multiple values for a single parameter key. Matthew Gerrior 2016-06-11 16:52:07 -04:00
  • c9b206d1d6 Remove unnecessary type annotations sdogruyol 2016-05-22 23:34:37 +03:00
  • b3ebf40201 Cache request url_params sdogruyol 2016-05-21 15:00:44 +03:00
  • e7ebb7f45d Merge pull request #147 from sdogruyol/error-404-customize Serdar Dogruyol 2016-05-15 15:03:55 +03:00
  • 67abb5fff3 Allow 404 error handler to be customizable Sdogruyol 2016-05-15 14:58:09 +03:00
  • 92d7273759 Inherit response.content type from filter if it's given. Fixes #146. Sdogruyol 2016-05-14 11:07:19 +03:00
  • c2edc89992 Bump version to 0.12.0 Sdogruyol 2016-05-08 20:45:40 +03:00
  • b73802df0e resolve merge conflict by trusting sdogruyol/master RE property listings Ben Jolitz 2016-05-07 17:22:08 -07:00
  • 108e732274 rename on_options -> extra_options Ben Jolitz 2016-05-07 17:18:42 -07:00
  • 53df88b9fb Update filters to dont care about block return type Sdogruyol 2016-05-06 21:03:24 +03:00
  • 3b402586f8 Make error handlers also work for filters sdogruyol 2016-05-06 14:08:34 +03:00
  • ceb962df6b Merge pull request #144 from sdogruyol/error-handler Serdar Dogruyol 2016-05-06 13:09:39 +03:00
  • 09439dd437 Remove unnecessary views sdogruyol 2016-05-05 23:54:25 +03:00
  • 12ec74e923 Add instance types for Crystal 0.16.0 sdogruyol 2016-05-05 23:34:07 +03:00
  • 76b5add665 Don't write to context in case of an exception sdogruyol 2016-05-05 23:22:58 +03:00
  • 6611b976a9 Improve exception handler sdogruyol 2016-05-05 23:12:17 +03:00
  • e6d9311895 Start implementing error block sdogruyol 2016-05-05 22:35:36 +03:00
  • 35239dfaa0 Improve config semantics sdogruyol 2016-05-03 21:11:35 +03:00
  • e077d17943 Remove colorize from common exception handler Sdogruyol 2016-04-18 22:17:55 +03:00
  • 456724f8e4 Remove colorize from common log handler Sdogruyol 2016-04-18 22:16:41 +03:00
  • 18efc4601f Add more documentation Sdogruyol 2016-04-18 21:40:48 +03:00
  • a8ecbde222 Merge branch 'instance-vars' Sdogruyol 2016-04-17 00:04:53 +03:00
  • 9c6d6f5326 Update to Radix 0.3.0 Sdogruyol 2016-04-16 23:55:26 +03:00
  • 2b9152ff79 Update instance types sdogruyol 2016-04-13 11:00:02 +03:00
  • 40ab34c63d All specs passing sdogruyol 2016-04-12 20:00:37 +03:00
  • 0a162a602b Update to use sdogruyol/radix sdogruyol 2016-04-12 17:56:30 +03:00
  • b4bc818490 Update handler sdogruyol 2016-04-12 17:35:29 +03:00
  • c47c9488fe Return string from context sdogruyol 2016-04-12 17:15:43 +03:00
  • 05e44e68c6 Updating to instance types sdogruyol 2016-04-12 14:41:09 +03:00
  • 3b4440d358 Merge pull request #140 from jeromegn/patch-1 Serdar Dogruyol 2016-04-11 20:32:24 +03:00
  • e407f52897 Only set @logger when not previously set Jerome Gravel-Niquet 2016-04-11 10:54:59 -04:00
  • 65d0af5b5f Update config to use uninitialized server Sdogruyol 2016-04-09 17:33:17 +03:00
  • b32099e13b Move server from local scope to config Sdogruyol 2016-04-09 17:20:39 +03:00
  • 0eb7638b1b Remove redundant at_exit hook Sdogruyol 2016-04-09 17:17:11 +03:00
  • de98236fc4 Merge pull request #136 from f/master Serdar Dogruyol 2016-04-03 19:14:28 +03:00