Sha256: 3268179119e6ad97179b861c13a93f6417869dc2b24789d0f2ce8d81651eecbf
Contents?: true
Size: 754 Bytes
Versions: 2
Compression:
Stored size: 754 Bytes
Contents
require 'faraday_middleware' Dir[File.expand_path('../../faraday/*.rb', __FILE__)].each{|f| require f} module Slack # @private module Connection private def connection options = { :headers => {'Accept' => "application/json; charset=utf-8", 'User-Agent' => user_agent}, :proxy => proxy, :url => endpoint, :ssl => { :ca_path => ca_path, :ca_file => ca_file }, } Faraday::Connection.new(options) do |connection| connection.use Faraday::Request::Multipart connection.use Faraday::Request::UrlEncoded connection.use Faraday::Response::ParseJson connection.use FaradayMiddleware::RaiseHttpException connection.adapter(adapter) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slack-api-1.1.3 | lib/slack/connection.rb |
slack-api-1.1.2 | lib/slack/connection.rb |