Class: Thin::Handler
- Inherits:
-
Object
- Object
- Thin::Handler
- Defined in:
- lib/thin/handler.rb
Overview
Handle a request and populate a response.
Direct Known Subclasses
Instance Method Summary collapse
-
#process(request, response) ⇒ Object
Process the incoming
request
into theresponse
that will be sent to the client. -
#start ⇒ Object
Start the handler.
Instance Method Details
#process(request, response) ⇒ Object
Process the incoming request
into the response
that will be sent to the client. Return true
to send the request to the next handler or false
to stop processing the request and send the response to the client right away.
14 15 16 |
# File 'lib/thin/handler.rb', line 14 def process(request, response) raise NotImplemented end |
#start ⇒ Object
Start the handler. Initialize resources, open files, that kinda thing.
6 7 |
# File 'lib/thin/handler.rb', line 6 def start end |