class UnderOs::HTTP
Public Class Methods
delete(url, options={}, &block)
click to toggle source
# File lib/under_os/http.rb, line 22 def self.delete(url, options={}, &block) request url, options.merge(method: :delete), &block end
get(url, options={}, &block)
click to toggle source
# File lib/under_os/http.rb, line 2 def self.get(url, options={}, &block) request url, options.merge(method: :get), &block end
head(url, options={}, &block)
click to toggle source
# File lib/under_os/http.rb, line 18 def self.head(url, options={}, &block) request url, options.merge(method: :head), &block end
patch(url, options={}, &block)
click to toggle source
# File lib/under_os/http.rb, line 14 def self.patch(url, options={}, &block) request url, options.merge(method: :patch), &block end
post(url, options={}, &block)
click to toggle source
# File lib/under_os/http.rb, line 6 def self.post(url, options={}, &block) request url, options.merge(method: :post), &block end
put(url, options={}, &block)
click to toggle source
# File lib/under_os/http.rb, line 10 def self.put(url, options={}, &block) request url, options.merge(method: :put), &block end
Protected Class Methods
request(*args, &block)
click to toggle source
# File lib/under_os/http.rb, line 28 def self.request(*args, &block) Request.new(*args, &block).send end