method

headers

headers()
public

Provides access to the request’s HTTP headers, for example:

request.headers["Content-Type"] # => "text/plain"