Module: SMG::HTTP::Hooks

Defined in:
lib/smg/http/hooks.rb

Instance Method Summary collapse

Instance Method Details

#after_request(options = {}, &block) ⇒ Object



9
10
11
# File 'lib/smg/http/hooks.rb', line 9

def after_request(options = {}, &block)
  callback(:after_request, options, &block)
end

#before_request(options = {}, &block) ⇒ Object



5
6
7
# File 'lib/smg/http/hooks.rb', line 5

def before_request(options = {}, &block)
  callback(:before_request, options, &block)
end