class Roda::RodaPlugins::Head::CloseLater

  1. lib/roda/plugins/head.rb
Superclass: Object

used to ensure proper resource release on HEAD requests we do not respond to a to_path method, here.

Methods

Public Class

  1. new

Public Instance

  1. close
  2. each

Public Class methods

new(body)
[show source]
   # File lib/roda/plugins/head.rb
43 def initialize(body)
44   @body = body
45 end

Public Instance methods

close()

this should be called by the Rack server

[show source]
   # File lib/roda/plugins/head.rb
52 def close
53   @body.close
54 end
each()

yield nothing

[show source]
   # File lib/roda/plugins/head.rb
48 def each
49 end