Module: HttpSimple
- Defined in:
- lib/httpsimple.rb
Defined Under Namespace
Classes: HTTPMaxRedirectError, Http
Constant Summary
collapse
- VERSION =
'1.0.5'
Class Method Summary
collapse
Class Method Details
.get(url, data = nil, &block) ⇒ Object
7
8
9
|
# File 'lib/httpsimple.rb', line 7
def self.get(url, data=nil, &block)
request(url, :get, data, &block)
end
|
.new ⇒ Object
15
16
17
|
# File 'lib/httpsimple.rb', line 15
def self.new
Http.new
end
|
.post(url, data = nil, &block) ⇒ Object
11
12
13
|
# File 'lib/httpsimple.rb', line 11
def self.post(url, data=nil, &block)
request(url, :post, data, &block)
end
|