Method: Rack::Response#no_entity_body?
- Defined in:
- lib/rack/response.rb
permalink #no_entity_body? ⇒ Boolean
99 100 101 102 |
# File 'lib/rack/response.rb', line 99 def no_entity_body? # The response body is an enumerable body and it is not allowed to have an entity body. @body.respond_to?(:each) && STATUS_WITH_NO_ENTITY_BODY[@status] end |