Sha256: 6bd81b17c62cf23f63b7da79b7dbdd4ad5348924e36c316d873947c7c8885b8c

Contents?: true

Size: 561 Bytes

Versions: 4

Compression:

Stored size: 561 Bytes

Contents

# We need to configure the ThreeScale::Client::HTTPClient class of the
# 3scale_client gem before we use it.
# Internally, the 3scale_client uses Net::HTTP with the keep-alive option
# enabled when it is available and the net-http-persistent gem
# https://github.com/drbrain/net-http-persistent when it is not.
# The first option is not thread-safe, and the second one is. This is why we
# need to force the second option.

require 'net/http/persistent'

ThreeScale::Client::HTTPClient.persistent_backend =
    ThreeScale::Client::HTTPClient::NetHttpPersistent

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xcflushd-1.2.0 lib/xcflushd/3scale_client_ext.rb
xcflushd-1.1.0 lib/xcflushd/3scale_client_ext.rb
xcflushd-1.0.0 lib/xcflushd/3scale_client_ext.rb
xcflushd-1.0.0.rc2 lib/xcflushd/3scale_client_ext.rb