kemal/CHANGELOG.md

40 lines
1.2 KiB
Markdown
Raw Normal View History

2016-10-01 15:50:24 +00:00
# 0.16.0
2016-09-15 18:20:18 +00:00
2016-10-01 15:50:24 +00:00
- Multipart support <3 (thanks @RX14). Now you can handle file uploads.
2016-10-02 15:33:28 +00:00
```crystal
post "/upload" do |env|
parse_multipart(env) do |field, data|
image1 = data if field == "image1"
image2 = data if field == "image2"
"Upload complete"
end
end
2016-10-01 15:50:24 +00:00
```
2016-10-02 15:33:28 +00:00
2016-10-01 15:50:24 +00:00
- Make session configurable. Now you can specify session name and expire time wit
2016-10-02 15:33:28 +00:00
```crystal
Kemal.config.session["name"] = "your_app"
Kemal.config.session["expire_time"] = 48.hours
```
2016-10-01 15:50:24 +00:00
- Session now supports more types. (String, Int32, Float64, Bool)
2016-09-15 18:20:18 +00:00
- Add `gzip` helper to enable / disable gzip compression on responses.
2016-09-20 23:32:09 +00:00
- Static file caching with etag and gzip (thanks @crisward)
- `Kemal.run` now accepts port to listen.
2016-09-15 18:20:18 +00:00
# 0.15.1 (05-09-2015)
- Don't forget to call_next on NullLogHandler
2016-09-03 14:14:22 +00:00
# 0.15.0 (03-09-2016)
2016-09-02 12:21:42 +00:00
2016-09-02 14:12:34 +00:00
- Add context store
- `KEMAL_ENV` respects to `Kemal.config.env` and needs to be explicitly set.
- `Kemal::InitHandler` is introduced. Adds initial configuration, headers like `X-Powered-By`.
- Add `send_file` to helpers.
- Add mime types.
- Fix parsing JSON params when "charset" is present in "Content-Type" header.
- Use http-only cookie for session
- Inject STDOUT by default in CommonLogHandler