Serdar Dogruyol
a5870e7d24
Crystal 0.25.0 ( #452 )
2018-06-16 18:03:00 +03:00
V. Elenhaupt
c2236acf3a
Code fixes reported by static code analysis ( #450 )
2018-05-17 11:07:40 +03:00
Serdar Dogruyol
11295f0584
Revert "Don't use JSON::Type, use JSON::Any instead"
...
This reverts commit 34475b986a486730d696ddf52250c38d7e0cfe4a.
2018-03-10 11:11:42 +03:00
Serdar Dogruyol
db00ecba1d
Don't use JSON::Type, use JSON::Any instead ( #435 )
2018-03-10 11:05:34 +03:00
Serdar Dogruyol
0b07070237
Don't initiliaze server if it's already initialized
2017-10-04 19:51:14 +03:00
Cris Ward
30bdcc9759
only return strings from routes fixes #374 ( #408 )
2017-10-02 23:47:43 +03:00
Sdogruyol
09d9e708f1
Introduce Kemal::InitHandler to initialize HTTP::Server::Context with defaults
2016-07-17 18:11:26 +03:00
Sdogruyol
4edebcf8eb
Format
2016-07-17 14:31:45 +03:00
Sdogruyol
0c46bd65da
Add X-Powered-By header
2016-06-19 03:22:55 +03:00
Omar Roth
ac4a5afc05
Fix ssl and specs for 0.18
2016-06-14 16:18:00 -05:00
Sdogruyol
92d7273759
Inherit response.content type from filter if it's given. Fixes #146 .
2016-05-14 11:07:19 +03:00
sdogruyol
05e44e68c6
Updating to instance types
2016-04-12 14:41:09 +03:00
Fatih Kadir Akın
8110788a41
Added return_with macro to break response in the middle of the block.
2016-03-30 00:48:58 +03:00
Sdogruyol
87df71a89a
Refactor specs
2016-03-21 18:29:48 +02:00
Sdogruyol
664673f125
Set content-type to text/html on errors.Fixes #130
2016-03-18 20:03:04 +02:00
Fatih Kadir Akın
42deb95688
Remove merged params to improve performance
2016-03-06 21:46:35 +02:00
Fatih Kadir Akın
8267ffe2c5
Upgrade ParamParser to make it more convinient.
...
It now decouples `env.params` to `env.params.query`, `env.params.body`,
`env.params.json` and `env.params.url` and you still can access merged
values using `env.params.all`
2016-03-06 13:22:24 +02: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
TSUYUSATO Kitsune
55361b3c9a
Use 302 to redirect instead of 301
...
`301` means "Moved Permanently", so browser caches this redirect, it is used when changing server URL.
`302` means "Found", it is used generally (e.g. redirect top page after
login).
Each of `301`, `302`, `303` and `307` means redict, but they are
different. We could choice those status in case.
2016-02-10 00:28:07 +09:00
Sdogruyol
467a1b4581
Rename handlers
2016-02-03 22:08:54 +02:00