Top Level Namespace

Defined in:

Method Summary

Method Detail

def serve(&handler : Tiny::Request, Tiny::Response -> _) #

Bootstrap the Tiny service

Accepts a block with parameters request and response, which can be used to handle incoming requests

serve do |request, response|
  # Your service code here...
end

[View source]