Overview
Quick Example
require "azu"
module MyApp
include Azu
configure do
port = 3000
end
end
struct HelloRequest
include Azu::Request
getter name : String = "World"
end
struct HelloResponse
include Azu::Response
def initialize(@name : String); end
def render
"Hello, #{@name}!"
end
end
struct HelloEndpoint
include Azu::Endpoint(HelloRequest, HelloResponse)
get "/"
def call : HelloResponse
HelloResponse.new(hello_request.name)
end
end
MyApp.start [
Azu::Handler::Logger.new,
Azu::Handler::Rescuer.new
]Architecture
Core Features
Feature
Description
Documentation
New to Azu?
Need to do something?
Looking for API?
Want to understand?
Tutorials
How-To Guides
Reference
Explanation
Resources
Last updated
Was this helpful?
