mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-16 00:03:37 -04:00
remove autoloading from Faraday
This commit is contained in:
parent
412844ac1d
commit
1e5284c5ad
@ -240,19 +240,10 @@ module Faraday
|
||||
component.register_middleware(mapping)
|
||||
end
|
||||
|
||||
autoload_all "faraday",
|
||||
:Middleware => 'middleware',
|
||||
:Builder => 'builder',
|
||||
:Request => 'request',
|
||||
:Response => 'response',
|
||||
:CompositeReadIO => 'upload_io',
|
||||
:UploadIO => 'upload_io',
|
||||
:Parts => 'upload_io'
|
||||
|
||||
require_libs "utils", "connection", "adapter", "error"
|
||||
require_libs "utils", "connection", "builder", "parameters", "middleware",
|
||||
"adapter", "request", "response", "upload_io", "error"
|
||||
end
|
||||
|
||||
|
||||
# not pulling in active-support JUST for this method. And I love this method.
|
||||
class Object
|
||||
# The primary purpose of this method is to "tap into" a method chain,
|
||||
|
@ -3,8 +3,6 @@ require 'set'
|
||||
require 'forwardable'
|
||||
require 'uri'
|
||||
|
||||
Faraday.require_libs 'builder', 'request', 'response', 'utils', 'parameters'
|
||||
|
||||
module Faraday
|
||||
# Public: Connection objects manage the default properties and the middleware
|
||||
# stack for fulfilling an HTTP request.
|
||||
|
Loading…
x
Reference in New Issue
Block a user