Class: BitClust::RackRequestHandler

Inherits:
RequestHandler show all
Defined in:
lib/bitclust/requesthandler.rb

Instance Method Summary collapse

Methods inherited from RequestHandler

#initialize

Constructor Details

This class inherits a constructor from BitClust::RequestHandler

Instance Method Details

#handle(rack_req) ⇒ Object


123
124
125
126
127
128
129
# File 'lib/bitclust/requesthandler.rb', line 123

def handle(rack_req)
  _handle(RackRequest.new(rack_req))
rescue BitClust::NotFoundError => err
  return not_found_response(err)
rescue => err
  return error_response(err)
end