Module: Sinatra::Async

Defined in:
lib/genesis/protocol/http/async_monkeypatch.rb

Overview

Monkey patch async to add some more methods

Instance Method Summary collapse

Instance Method Details



11
12
13
# File 'lib/genesis/protocol/http/async_monkeypatch.rb', line 11

def alink(path, opts = {}, &bk)
  aroute('LINK', path, opts, &bk)
end

#apatch(path, opts = {}, &bk) ⇒ Object



7
8
9
# File 'lib/genesis/protocol/http/async_monkeypatch.rb', line 7

def apatch(path, opts = {}, &bk)
  aroute('PATCH', path, opts, &bk)
end


15
16
17
# File 'lib/genesis/protocol/http/async_monkeypatch.rb', line 15

def aunlink(path, opts = {}, &bk)
  aroute('UNLINK', path, opts, &bk)
end