Module: Faraday
- Extended by:
- AutoloadHelper
- Defined in:
- lib/faraday.rb,
lib/faraday/error.rb,
lib/faraday/builder.rb,
lib/faraday/request.rb,
lib/faraday/response.rb,
lib/faraday/connection.rb,
lib/faraday/middleware.rb,
lib/faraday/adapter/test.rb,
lib/faraday/request/yajl.rb,
lib/faraday/response/yajl.rb,
lib/faraday/adapter/patron.rb,
lib/faraday/adapter/net_http.rb,
lib/faraday/adapter/typhoeus.rb,
lib/faraday/request/active_support_json.rb,
lib/faraday/response/active_support_json.rb
Defined Under Namespace
Modules: Adapter, AutoloadHelper, Error
Classes: Builder, Connection, Middleware, Request, Response
Class Attribute Summary collapse
Class Method Summary
collapse
-
.build(options = {}, &block) ⇒ Object
use the method signature from Faraday::Connection.
-
.delete(url = nil, headers = nil, &block) ⇒ Object
-
.get(url = nil, headers = nil, &block) ⇒ Object
-
.head(url = nil, headers = nil, &block) ⇒ Object
-
.in_parallel(manager) ⇒ Object
-
.in_parallel? ⇒ Boolean
-
.path_prefix=(value) ⇒ Object
-
.post(url = nil, body = nil, headers = nil, &block) ⇒ Object
-
.proxy(arg = nil) ⇒ Object
-
.put(url = nil, body = nil, headers = nil, &block) ⇒ Object
-
.url_prefix=(url) ⇒ Object
all_loaded_constants, autoload_all, load_autoloaded_constants, lookup_module, register_lookup_modules
Class Attribute Details
.default_adapter ⇒ Object
Returns the value of attribute default_adapter.
5
6
7
|
# File 'lib/faraday.rb', line 5
def default_adapter
@default_adapter
end
|
.default_connection ⇒ Object
11
12
13
|
# File 'lib/faraday.rb', line 11
def self.default_connection
@default_connection ||= Connection.new
end
|
Class Method Details
.build(options = {}, &block) ⇒ Object
use the method signature from Faraday::Connection
16
17
18
|
# File 'lib/faraday.rb', line 16
def self.build(options = {}, &block)
default_connection.build(options, &block)
end
|
.delete(url = nil, headers = nil, &block) ⇒ Object
36
37
38
|
# File 'lib/faraday.rb', line 36
def self.delete(url = nil, = nil, &block)
default_connection.delete(url, , &block)
end
|
.get(url = nil, headers = nil, &block) ⇒ Object
20
21
22
|
# File 'lib/faraday.rb', line 20
def self.get(url = nil, = nil, &block)
default_connection.get(url, , &block)
end
|
.head(url = nil, headers = nil, &block) ⇒ Object
32
33
34
|
# File 'lib/faraday.rb', line 32
def self.head(url = nil, = nil, &block)
default_connection.head(url, , &block)
end
|
.in_parallel(manager) ⇒ Object
44
45
46
|
# File 'lib/faraday.rb', line 44
def self.in_parallel(manager)
default_connection.in_parallel(manager)
end
|
.in_parallel? ⇒ Boolean
40
41
42
|
# File 'lib/faraday.rb', line 40
def self.in_parallel?
default_connection.in_parallel?
end
|
.path_prefix=(value) ⇒ Object
56
57
58
|
# File 'lib/faraday.rb', line 56
def self.path_prefix=(value)
default_connection.path_prefix = value
end
|
.post(url = nil, body = nil, headers = nil, &block) ⇒ Object
24
25
26
|
# File 'lib/faraday.rb', line 24
def self.post(url = nil, body = nil, = nil, &block)
default_connection.post(url, body, , &block)
end
|
.proxy(arg = nil) ⇒ Object
48
49
50
|
# File 'lib/faraday.rb', line 48
def self.proxy(arg = nil)
default_connection.proxy(arg)
end
|
.put(url = nil, body = nil, headers = nil, &block) ⇒ Object
28
29
30
|
# File 'lib/faraday.rb', line 28
def self.put(url = nil, body = nil, = nil, &block)
default_connection.put(url, body, , &block)
end
|
.url_prefix=(url) ⇒ Object
52
53
54
|
# File 'lib/faraday.rb', line 52
def self.url_prefix=(url)
default_connection.url_prefix = url
end
|