Sha256: 59b029607ee6a8791a551c141924802c7906f207f192727fc1ed644405814bee
Contents?: true
Size: 879 Bytes
Versions: 5
Compression:
Stored size: 879 Bytes
Contents
module Slack module Web module Faraday module Connection private def connection options = { headers: { 'Accept' => 'application/json; charset=utf-8' } } options[:headers]['User-Agent'] = user_agent if user_agent options[:proxy] = proxy if proxy options[:ssl] = { ca_path: ca_path, ca_file: ca_file } ::Faraday::Connection.new(endpoint, options) do |connection| connection.use ::Faraday::Request::Multipart connection.use ::Faraday::Request::UrlEncoded connection.use ::Faraday::Response::RaiseError connection.use ::Slack::Web::Faraday::Response::RaiseError connection.use ::FaradayMiddleware::ParseJson connection.adapter(::Faraday.default_adapter) end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems