Module: Slack::Incoming::Connection
- Included in:
- Webhooks
- Defined in:
- lib/slack/incoming/webhooks/connection.rb
Instance Method Summary collapse
Instance Method Details
#connection ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/slack/incoming/webhooks/connection.rb', line 8 def connection uri = URI.parse(webhook_url) http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true http.ssl_version = :TLSv1_2 http.verify_mode = OpenSSL::SSL::VERIFY_PEER http end |