bodyis set and
#sendlike 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?
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()