Sdogruyol
607aaeffe3
Allow headers in built-in static file server
2017-08-22 15:29:51 +03:00
sdogruyol
1d056b203b
Dynamically insert handlers. Fixes #376
2017-07-11 11:22:35 +03:00
sdogruyol
ce024ba748
Use replace instead of each for replacing handlers
2017-05-13 09:16:59 -07:00
sdogruyol
62946fd987
Modularize handlers
2017-05-12 16:18:50 -07:00
Sdogruyol
f511d21aa1
Dont call setup in config#add_filter_handler. Fixes #338
2017-03-25 20:37:11 +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
Sdogruyol
ac8ec0a07b
Remove redundant session stuff
2016-12-10 19:34:46 +03:00
Sdogruyol
9c1c832c9a
Add Kemal.stop. Fixes #269
2016-12-08 13:50:54 +03:00
sdogruyol
012ac8f6b7
Yield error in custom error handlers
2016-11-16 20:27:01 +03:00
sdogruyol
7dd834ad28
Fix broken websocket routing :/
2016-11-02 11:19:48 +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
Sdogruyol
8c600cb26e
Make session name and expire time configurable
2016-09-30 14:03:29 +03:00
Serdar Dogruyol
d41ad90826
Merge pull request #204 from crisward/master
...
gzip for static files
2016-09-18 13:03:54 +03:00
Cris Ward
a8cc4f4177
gzip static files options dir listing and etags
...
format
2016-09-18 01:46:16 +01:00
maiha
b2e81e6bc1
Disable ssl when `-D without_openssl` is given
2016-09-16 23:34:23 +09:00
sdogruyol
64d3271fb2
Make HTTP::Server uninitialized instead of HTTP::Server?
2016-09-05 10:38:00 +03:00
Sdogruyol
1705852f25
Inject STDOUT by default in CommonLogHandler
2016-08-01 23:21:19 +03:00
Sdogruyol
98efbfe341
Improve logging and specs
2016-07-28 21:12:55 +03:00
Sdogruyol
09d9e708f1
Introduce Kemal::InitHandler to initialize HTTP::Server::Context with defaults
2016-07-17 18:11:26 +03:00
Sdogruyol
d11b702ee4
More docs
2016-07-17 14:26:22 +03:00
Sdogruyol
3ea6a01afc
Remove file handler from CommonLogHandler. Log only to STDOUT. Fixes #159
2016-07-05 22:14:00 +03:00
Sdogruyol
20a174b66e
Add extra_options from CLI
2016-07-04 20:23:16 +03:00
Omar Roth
ac4a5afc05
Fix ssl and specs for 0.18
2016-06-14 16:18:00 -05:00
sdogruyol
c9b206d1d6
Remove unnecessary type annotations
2016-05-22 23:34:37 +03:00
Ben Jolitz
b73802df0e
resolve merge conflict by trusting sdogruyol/master RE property listings
2016-05-07 17:22:08 -07:00
Ben Jolitz
108e732274
rename on_options -> extra_options
2016-05-07 17:18:42 -07: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
35239dfaa0
Improve config semantics
2016-05-03 21:11:35 +03:00
Sdogruyol
a8ecbde222
Merge branch 'instance-vars'
2016-04-17 00:04:53 +03:00
sdogruyol
2b9152ff79
Update instance types
2016-04-13 11:00:02 +03:00
sdogruyol
40ab34c63d
All specs passing
2016-04-12 20:00:37 +03:00
sdogruyol
05e44e68c6
Updating to instance types
2016-04-12 14:41:09 +03:00
Jerome Gravel-Niquet
e407f52897
Only set @logger when not previously set
...
This came in contradiction with the docs.
2016-04-11 10:54:59 -04:00
Sdogruyol
65d0af5b5f
Update config to use uninitialized server
2016-04-09 17:33:17 +03:00
Sdogruyol
b32099e13b
Move server from local scope to config
2016-04-09 17:20:39 +03:00
Ben Jolitz
1f809c68c8
Support additional options as part of the Config
...
This commit adds the ability to add a closure suitable for adding
additional options. It is expected to allow someone to set global,
module or class level variables so they can pass changes/options
suitable for making decisions.
2016-03-30 13:33:51 -07:00
Sdogruyol
fd904cd98d
0.11.0
2016-03-19 15:15:44 +02:00
Sdogruyol
664673f125
Set content-type to text/html on errors.Fixes #130
2016-03-18 20:03:04 +02:00
Sdogruyol
e3c3154006
Make sure to instantiate null log handler
2016-03-06 20:16:51 +02:00
Joris Moriau
04ccb973a9
set positions for errors and logger middleware, added 2 views
2016-03-03 21:23:04 +01:00
Joris Moriau
ed769ad700
added configure serve_static
2016-02-15 12:59:26 +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
8f5bc755ae
Add logger macro to easily setup custom log_handler
2016-02-12 16:09:15 +02:00
sdogruyol
3c75d727ba
Complete decoupling logger
2016-02-12 14:11:34 +02:00
sdogruyol
454894820d
Fix config
2016-02-12 10:22:52 +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
0498801b0d
Initialize logger in config
2016-01-17 14:22:47 +02:00