Built-in Handlers
Handler::Base
class MyHandler < Azu::Handler::Base
def call(context)
# Before processing
call_next(context)
# After processing
end
endMethods
call
def call(context : HTTP::Server::Context)
# Handle request
endcall_next
Handler::Rescuer
Behavior
Exception
Status
Response
Development Mode
Production Mode
Handler::Logger
Log Format
Configuration
Handler::Static
File Types
Handler::CORS
Response Headers
Handler Pipeline
Creating Custom Handlers
Handler Order Best Practices
See Also
Last updated
Was this helpful?
