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/logger/logger.rb,
lib/httparty/core_extensions.rb,
lib/httparty/response/headers.rb,
lib/httparty/hash_conversions.rb,
lib/httparty/logger/curl_logger.rb,
lib/httparty/connection_adapter.rb,
lib/httparty/logger/apache_logger.rb,
lib/httparty/module_inheritable_attributes.rb

Overview

See Also:

Defined Under Namespace

Modules: AllowedFormatsDeprecation, ClassMethods, HashConversions, Logger, ModuleInheritableAttributes Classes: Basement, ConnectionAdapter, CookieHash, Error, Parser, RedirectionTooDeep, Request, Response, ResponseError, UnsupportedFormat, UnsupportedURIScheme

Constant Summary

VERSION =
"0.13.1"
BasicObject =

:nodoc:

::BasicObject

Class Method Summary (collapse)

Methods included from AllowedFormatsDeprecation

const_missing

Class Method Details

+ (Object) copy(*args, &block)



600
601
602
# File 'lib/httparty.rb', line 600

def self.copy(*args, &block)
  Basement.copy(*args, &block)
end

+ (Object) delete(*args, &block)



592
593
594
# File 'lib/httparty.rb', line 592

def self.delete(*args, &block)
  Basement.delete(*args, &block)
end

+ (Object) get(*args, &block)



576
577
578
# File 'lib/httparty.rb', line 576

def self.get(*args, &block)
  Basement.get(*args, &block)
end

+ (Object) head(*args, &block)



604
605
606
# File 'lib/httparty.rb', line 604

def self.head(*args, &block)
  Basement.head(*args, &block)
end

+ (Object) included(base)



32
33
34
35
36
37
38
39
# File 'lib/httparty.rb', line 32

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

+ (Object) move(*args, &block)



596
597
598
# File 'lib/httparty.rb', line 596

def self.move(*args, &block)
  Basement.move(*args, &block)
end

+ (Object) normalize_base_uri(url)

:nodoc:



561
562
563
564
565
566
567
568
569
570
# File 'lib/httparty.rb', line 561

def self.normalize_base_uri(url) #:nodoc:
  normalized_url = url.dup
  use_ssl = (normalized_url =~ /^https/) || (normalized_url =~ /:443\b/)
  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

+ (Object) options(*args, &block)



608
609
610
# File 'lib/httparty.rb', line 608

def self.options(*args, &block)
  Basement.options(*args, &block)
end

+ (Object) patch(*args, &block)



584
585
586
# File 'lib/httparty.rb', line 584

def self.patch(*args, &block)
  Basement.patch(*args, &block)
end

+ (Object) post(*args, &block)



580
581
582
# File 'lib/httparty.rb', line 580

def self.post(*args, &block)
  Basement.post(*args, &block)
end

+ (Object) put(*args, &block)



588
589
590
# File 'lib/httparty.rb', line 588

def self.put(*args, &block)
  Basement.put(*args, &block)
end