Module: Tynn::AllMethods::InstanceMethods
- Defined in:
- lib/tynn/all_methods.rb
Instance Method Summary collapse
-
#head ⇒ Object
Public: Executes the given block if the request method is
HEAD
. -
#options ⇒ Object
Public: Executes the given block if the request method is
OPTIONS
.
Instance Method Details
#head ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/tynn/all_methods.rb', line 23 def head if root? && req.head? yield halt(res.finish) end end |