Is it safe to reuse Faraday coection objects, or is it better to recreate them every time?
def coection
@coection ||= Faraday.new('http://example.com') do |co|
co.request :url_encoded
# more configuration
end
end
Is it safe to reuse Faraday coection objects, or is it better to recreate them every time?
def coection
@coection ||= Faraday.new('http://example.com') do |co|
co.request :url_encoded
# more configuration
end
end
- - , .
برچسب:
نویسنده: استخدام کار