Changelog History
-
v0.4.1
July 02, 2018 -
v0.4.0 Changes
February 02, 2017If
App
is an instance ofToro
, then you can start the server
by callingApp.run
. You can pass any options you would use with
theHTTP::Server
constructor from the standard library.For example, you can start the server on port 80:
App.run(80)
🔧 Or you can further configure server by using a block. The following
🔧 example shows how to configure SSL certificates:App.run(443) do |server| ssl = OpenSSL::SSL::Context::Server.new ssl.private\_key = "path/to/private\_key" ssl.certificate\_chain = "path/to/certificate\_chain" server.tls = sslend
📚 Refer to Crystal's documentation for more options.
-
v0.3.3
November 03, 2016 -
v0.3.2
July 16, 2016 -
v0.3.1
July 14, 2016 -
v0.3.0 Changes
July 14, 2016Toro gains a
json
helper. If you require"json"
from the standard library, you can use thejson
helper with any generic Crystal object. Thanks @raydf for this feature! -
v0.2.0 Changes
July 14, 2016🚀 I felt Toro was fast, but then I got a pull request from @raydf where he got rid of the workflow around raising the
Halt
exception, something Toro was using for stopping the execution once a match was found. Instead, he added a flag (the@halt
instance variable) to keep track if a match had occurred. The result was an increase in performance of around 40%. The final version doesn't need the flag, as we were able to replace part of the API with a set of macros and the behavior is more in line with that of the first release. Huge thanks to @raydf for his awesome work :-) -
v0.1.0
July 12, 2016