class ActionDispatch::Request

def headers

Experimental RBS support (using type sampling data from the type_fusion project).

def headers: () -> ActionDispatch::Http::Headers

This signature was generated using 2 samples from 1 application.

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

Provides access to the request's HTTP headers, for example:
def headers
  @headers ||= Http::Headers.new(self)
end