Class: HTTPkit::Server::BodyHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/httpkit/server/body_handler.rb

Instance Method Summary collapse

Instance Method Details

#respond(request, response) {|request, banana_response(request, response)| ... } ⇒ Object

Yields:

  • (request, banana_response(request, response))

5
6
7
8
9
# File 'lib/httpkit/server/body_handler.rb', line 5

def respond(request, response)
  response = response.with_headers(response.body_headers)

  yield request, banana_response(request, response)
end