Module: HTTParty
- Extended by:
- AllowedFormatsDeprecation
- Included in:
- Basement
- Defined in:
- lib/httparty.rb,
lib/httparty/parser.rb,
lib/httparty/request.rb,
lib/httparty/version.rb,
lib/httparty/response.rb,
lib/httparty/exceptions.rb,
lib/httparty/core_extensions.rb,
lib/httparty/module_inheritable_attributes.rb
Overview
Defined Under Namespace
Modules: AllowedFormatsDeprecation, ClassMethods, ModuleInheritableAttributes
Classes: Basement, BasicObject, CookieHash, Parser, RedirectionTooDeep, Request, Response, ResponseError, UnsupportedFormat, UnsupportedURIScheme
Constant Summary
collapse
- VERSION =
"0.7.6".freeze
- CRACK_DEPENDENCY =
"0.1.8".freeze
Class Method Summary
collapse
const_missing
Class Method Details
.delete(*args) ⇒ Object
433
434
435
|
# File 'lib/httparty.rb', line 433
def self.delete(*args)
Basement.delete(*args)
end
|
.get(*args) ⇒ Object
421
422
423
|
# File 'lib/httparty.rb', line 421
def self.get(*args)
Basement.get(*args)
end
|
.head(*args) ⇒ Object
437
438
439
|
# File 'lib/httparty.rb', line 437
def self.head(*args)
Basement.head(*args)
end
|
.included(base) ⇒ Object
28
29
30
31
32
33
34
35
|
# File 'lib/httparty.rb', line 28
def self.included(base)
base.extend ClassMethods
base.send :include, HTTParty::ModuleInheritableAttributes
base.send(:mattr_inheritable, :default_options)
base.send(:mattr_inheritable, :default_cookies)
base.instance_variable_set("@default_options", {})
base.instance_variable_set("@default_cookies", CookieHash.new)
end
|
.normalize_base_uri(url) ⇒ Object
406
407
408
409
410
411
412
413
414
415
|
# File 'lib/httparty.rb', line 406
def self.normalize_base_uri(url) normalized_url = url.dup
use_ssl = (normalized_url =~ /^https/) || normalized_url.include?(':443')
ends_with_slash = normalized_url =~ /\/$/
normalized_url.chop! if ends_with_slash
normalized_url.gsub!(/^https?:\/\//i, '')
"http#{'s' if use_ssl}://#{normalized_url}"
end
|
.options(*args) ⇒ Object
441
442
443
|
# File 'lib/httparty.rb', line 441
def self.options(*args)
Basement.options(*args)
end
|
.post(*args) ⇒ Object
425
426
427
|
# File 'lib/httparty.rb', line 425
def self.post(*args)
Basement.post(*args)
end
|
.put(*args) ⇒ Object
429
430
431
|
# File 'lib/httparty.rb', line 429
def self.put(*args)
Basement.put(*args)
end
|