Method: Impression::Resource#html_response

Defined in:
lib/impression/resource.rb

#html_response(html, **headers) ⇒ Object

Returns a callable that responds with HTML using the given parameters.

Parameters:

  • html (String)

    response body

  • **headers (Hash)

    additional response headers



169
170
171
# File 'lib/impression/resource.rb', line 169

def html_response(html, **headers)
  ->(req) { req.respond_html(html, **headers) }
end