Update CHANGELOG
This commit is contained in:
parent
c81f8f979a
commit
b113b3dd73
1 changed files with 23 additions and 0 deletions
23
CHANGELOG.md
23
CHANGELOG.md
|
@ -1,3 +1,26 @@
|
|||
# Next
|
||||
|
||||
- Dynamically insert handlers. Fixes #376.
|
||||
- Add context to WebSocket. This allows one to use `HTTP::Server::Context` in `ws` declarations. Fixes #349.
|
||||
|
||||
```ruby
|
||||
ws "/:room_name" do |socket, env|
|
||||
env.params.url["room_name"]
|
||||
end
|
||||
```
|
||||
|
||||
- Add support for customizing the headers of built-in `Kemal::StaticFileHandler`. Useful for supporting `CORS`.
|
||||
|
||||
```ruby
|
||||
static_headers do |response, filepath, filestat|
|
||||
if filepath =~ /\.html$/
|
||||
response.headers.add("Access-Control-Allow-Origin", "*")
|
||||
end
|
||||
response.headers.add("Content-Size", filestat.size.to_s)
|
||||
end
|
||||
end
|
||||
```
|
||||
|
||||
# 0.20.0 (01-07-2017)
|
||||
|
||||
- Crystal 0.23.0 support! As always, Kemal is compatible with the latest major release of Crystal 💎
|
||||
|
|
Loading…
Reference in a new issue