Skip to content

Releases: kemalcr/kemal

v1.1.2

24 Feb 14:57

Choose a tag to compare

v1.1.1

22 Feb 14:30

Choose a tag to compare

  • Ignore HTTP::Server::Response patching for crystal >= 1.3.0 #628. Thanks @SamantazFox πŸ™

v1.1.0

02 Sep 14:50

Choose a tag to compare

  • You can now set your own application name for startup message #606. Thanks @aravindavk πŸ™
  • Add array of paths support for before/after filters #605. Thanks @sdogruyol πŸ™
  • Fixed executing filters when before and after is defined at the same time #612. Thanks @mamantoha πŸ™
  • Set content type to text/html for 500 exceptions #616. Thanks @sdogruyol πŸ™

v1.0.0

22 Mar 20:22
3fee068

Choose a tag to compare

  • Crystal 1.0.0 support πŸŽ‰
  • Update Radix to use latest 0.4.0 #596. Thanks @luislavena πŸ™
  • Use latest version of Ameba dependency (dev) #597. Thanks @luislavena πŸ™
  • Fix StaticFileHandler failing spec #599. Thanks @jinn999 πŸ™

v0.27.0

28 Nov 09:18

Choose a tag to compare

  • Crystal 0.35.x support πŸŽ‰ Thanks @bcardiff πŸ™
  • Fix issues with responding with long strings #576. Thanks @mamantoha πŸ™
  • Fix broken WebSocket support in 0.35.0 #577. Thanks @mamantoha πŸ™
  • Allow to set optional response body on redirects #561. Thanks @mamantoha πŸ™

v0.26.1

01 Dec 11:16

Choose a tag to compare

  • Fix process request when a response already closed #550. Thanks @mamantoha πŸ™
  • Switch to new Ameba repository #549. Thanks @mamantoha πŸ™
  • Check for KEMAL_ENV variable already in Config#initialize#552. Thanks @Sija πŸ™
  • Cleanup Ameba warnings #551. Thanks @Sija πŸ™
  • Flush io buffer after each write to log #554. Thanks @mang πŸ™

v0.26.0

05 Aug 07:51

Choose a tag to compare

0.25.2

08 Feb 09:04

Choose a tag to compare

  • Crystal 0.27.2 support πŸŽ‰

  • Add option to config to parse or not command line parameters #483. Thanks @diegogub πŸ™

  • Allow to set filename for send_file #512. Thanks @mamantoha πŸ™

send_file env, "./asset/image.jpeg", filename: "image.jpg"
  • Set status_code before response #513. Thanks @mamantohoa πŸ™

  • Use Crystal MIME registry. #516 Thanks @Sija πŸ™

v0.25.1

05 Nov 20:02

Choose a tag to compare

v0.25.0

04 Nov 23:31

Choose a tag to compare

  • Crystal 0.27.0 support.

  • [breaking change] Added back env.params.files.

Here's a fully working sample for reading a image file upload image1 and saving it under public/uploads.

post "/upload" do |env|
file = env.params.files["image1"].tmpfile
file_path = ::File.join [Kemal.config.public_folder, "uploads/", file.filename]
File.open(file_path, "w") do |f|
  IO.copy(file, f)
end
"Upload ok"
end

To test

curl -F "image1=@/Users/serdar/Downloads/kemal.png" http://localhost:3000/upload

  • Cache HTTP routes to increase performance πŸš€ #493