mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Update CHANGELOG
This commit is contained in:
parent
39cfe14811
commit
cf2144636d
2 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
||||||
# Next
|
# Next
|
||||||
|
|
||||||
- Add `gzip` helper to enable / disable gzip compression on responses.
|
- Add `gzip` helper to enable / disable gzip compression on responses.
|
||||||
|
- Static file caching with etag and gzip (thanks @crisward)
|
||||||
|
- `Kemal.run` now accepts port to listen.
|
||||||
|
|
||||||
# 0.15.1 (05-09-2015)
|
# 0.15.1 (05-09-2015)
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@ require "./kemal/middleware/*"
|
||||||
|
|
||||||
module Kemal
|
module Kemal
|
||||||
# The command to run a `Kemal` application.
|
# The command to run a `Kemal` application.
|
||||||
# The port can be given to `#run` but is optionnal.
|
# The port can be given to `#run` but is optional.
|
||||||
# If not given Kemal will use the default config port (`Kemal::Config#port`)
|
# If not given Kemal will use `Kemal::Config#port`
|
||||||
def self.run(port = nil)
|
def self.run(port = nil)
|
||||||
Kemal::CLI.new
|
Kemal::CLI.new
|
||||||
config = Kemal.config
|
config = Kemal.config
|
||||||
|
@ -15,7 +15,7 @@ module Kemal
|
||||||
config.port = port if port
|
config.port = port if port
|
||||||
|
|
||||||
config.server = HTTP::Server.new(config.host_binding, config.port, config.handlers)
|
config.server = HTTP::Server.new(config.host_binding, config.port, config.handlers)
|
||||||
{% if ! flag?(:without_openssl) %}
|
{% if !flag?(:without_openssl) %}
|
||||||
config.server.tls = config.ssl
|
config.server.tls = config.ssl
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue