class ActionDispatch::Response

def rack_response(status, header)

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

def rack_response: (Integer status, Hash header) -> Array[Integer]

This signature was generated using 2 samples from 2 applications.

def rack_response(status, header)
  if NO_CONTENT_CODES.include?(status)
    [status, header, []]
  else
    [status, header, RackBody.new(self)]
  end
end