The Crystal programming language | http://crystal-lang.org | Fund Crystal's development: http://is.gd/X7PRtI | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/
body
is set and body_io
is not
Foo::Bar.echo
or Toto::Foo::Bar.echo
#send
like in Ruby, but id consider redesigning it so you dont need to do that?
but id consider redesigning it so you dont need to do that?
Agree
In simple terms, I am building a framework with an architecture based on the continuous passing
style.
The experience I would like to provide is something like this (the example below is just a draft/idea, not a valid Crystal program) :
require "Framework"
# services
require "Users"
require "Messages"
backend = Framework.new()
# create the API endpoint /users
backend.use( "users", Users.new() )
# create the API endpoint /messages
backend.use( "messages", Messages.new() )
# expose the API and listen on the default port
backend.start()