Class: HTTPkit::Server::MandatoryHandler

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

Constant Summary collapse

SERVER =
'Server'.freeze
SERVER_VALUE =
"httpkit/#{HTTPkit::VERSION}".freeze
DATE =
'Date'.freeze

Instance Method Summary collapse

Instance Method Details

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

Yields:

  • (request, response.with_headers(missing_headers(response)))

9
10
11
# File 'lib/httpkit/server/mandatory_handler.rb', line 9

def respond(request, response)
  yield request, response.with_headers(missing_headers(response))
end