Skip to content

v0.16.0

Compare
Choose a tag to compare
@sdogruyol sdogruyol released this 01 Oct 15:54
· 352 commits to master since this release
  • Multipart support <3 (thanks @RX14). Now you can handle file uploads.
post "/upload" do |env|
  parse_multipart(env) do |field, data|
    image1 = data if field == "image1"
    image2 = data if field == "image2"
    "Upload complete"
  end
end
  • Make session configurable. Now you can specify session name and expire time wit
Kemal.config.session["name"] = "your_app"
Kemal.config.session["expire_time"] = 48.hours
  • Session now supports more types. (String, Int32, Float64, Bool)
  • 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.