Class: Thin::Handler

Inherits:
Object
  • Object
show all
Defined in:
lib/thin/handler.rb

Overview

Handle a request and populate a response.

Direct Known Subclasses

DirHandler, RailsHandler

Instance Method Summary collapse

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.

Raises:

  • (NotImplemented)


14
15
16
# File 'lib/thin/handler.rb', line 14

def process(request, response)
  raise NotImplemented
end

#startObject

Start the handler. Initialize resources, open files, that kinda thing.



6
7
# File 'lib/thin/handler.rb', line 6

def start
end