Class: UnderOs::HTTP
Defined Under Namespace
Classes: Cookies, Request, Response
Class Method Summary
collapse
-
.delete(url, options = {}, &block) ⇒ Object
-
.get(url, options = {}, &block) ⇒ Object
-
.head(url, options = {}, &block) ⇒ Object
-
.patch(url, options = {}, &block) ⇒ Object
-
.post(url, options = {}, &block) ⇒ Object
-
.put(url, options = {}, &block) ⇒ Object
Class Method Details
.delete(url, options = {}, &block) ⇒ Object
22
23
24
|
# 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) ⇒ Object
2
3
4
|
# 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) ⇒ Object
18
19
20
|
# 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) ⇒ Object
14
15
16
|
# 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) ⇒ Object
6
7
8
|
# 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) ⇒ Object
10
11
12
|
# File 'lib/under_os/http.rb', line 10
def self.put(url, options={}, &block)
request url, options.merge(method: :put), &block
end
|