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
Returns a new instance of CloseLater.
43 44 45 |
# File 'lib/roda/plugins/head.rb', line 43 def initialize(body) @body = body end |
Instance Method Details
#close ⇒ Object
this should be called by the Rack server
52 53 54 |
# File 'lib/roda/plugins/head.rb', line 52 def close @body.close end |
#each ⇒ Object
yield nothing
48 49 |
# File 'lib/roda/plugins/head.rb', line 48 def each end |