Class: Roda::RodaPlugins::Head::CloseLater
- Inherits:
-
Object
- Object
- Roda::RodaPlugins::Head::CloseLater
- Defined in:
- lib/roda/plugins/head.rb
Overview
used to ensure proper resource release on HEAD requests we do not respond to a to_path method, here.
Instance Method Summary collapse
-
#close ⇒ Object
this should be called by the Rack server.
-
#each ⇒ Object
yield nothing.
-
#initialize(body) ⇒ CloseLater
constructor
A new instance of CloseLater.
Constructor Details
#initialize(body) ⇒ CloseLater
44 45 46 |
# File 'lib/roda/plugins/head.rb', line 44 def initialize(body) @body = body end |
Instance Method Details
#close ⇒ Object
this should be called by the Rack server
53 54 55 |
# File 'lib/roda/plugins/head.rb', line 53 def close @body.close end |
#each ⇒ Object
yield nothing
49 50 |
# File 'lib/roda/plugins/head.rb', line 49 def each end |