Sha256: ac3a2378f9f0292028332cb919b0369625a3aa860631d77f222cc5e918cda16e
Contents?: true
Size: 780 Bytes
Versions: 2
Compression:
Stored size: 780 Bytes
Contents
require 'faraday_middleware' Dir[File.expand_path('../../../faraday/*.rb', __FILE__)].each{|file| require file} module Open311 class Client # @private module Connection private def connection(raw=false) options = { # :headers => {'Accept' => "*/#{format}", 'User-Agent' => user_agent}, :proxy => proxy, :ssl => {:verify => false}, :url => endpoint } Faraday::Connection.new(options) do |builder| builder.use Faraday::Request::Multipart builder.adapter(adapter) builder.use Faraday::Response::RaiseError builder.use Faraday::Response::Parse unless raw builder.use Faraday::Response::Mashify unless raw end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
open311-0.0.1 | lib/open311/client/connection.rb |
open311-0.0.0 | lib/open311/client/connection.rb |