v0.4.1July 02, 2018
v0.4.0 ChangesFebruary 02, 2017
Appis an instance of
Toro, then you can start the server
App.run. You can pass any options you would use with
HTTP::Serverconstructor from the standard library.
For example, you can start the server on port 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.3November 03, 2016
v0.3.2July 16, 2016
v0.3.1July 14, 2016
v0.3.0 ChangesJuly 14, 2016
Toro gains a
jsonhelper. If you require
"json"from the standard library, you can use the
jsonhelper with any generic Crystal object. Thanks @raydf for this feature!
v0.2.0 ChangesJuly 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
Haltexception, something Toro was using for stopping the execution once a match was found. Instead, he added a flag (the
@haltinstance 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.0July 12, 2016