Sha256: 779f305e3669cd2ba1d88cd2adf030f8f7010de4ecedccf326fd8a8690a4386c

Contents?: true

Size: 845 Bytes

Versions: 4

Compression:

Stored size: 845 Bytes

Contents

# Copyright 2024 DeepL SE (https://www.deepl.com)
# Use of this source code is governed by an MIT
# license that can be found in the LICENSE file.
# frozen_string_literal: true

module DeepL
  class HTTPClientOptions
    attr_reader :proxy, :send_platform_info, :enable_ssl_verification, :cert_path, :open_timeout,
                :read_timeout, :write_timeout, :ssl_timeout

    def initialize(proxy, cert_path, enable_ssl_verification: true, open_timeout: nil, # rubocop:disable Metrics/ParameterLists
                   read_timeout: nil, write_timeout: nil, ssl_timeout: nil)
      @proxy = proxy
      @enable_ssl_verification = enable_ssl_verification
      @cert_path = cert_path
      @open_timeout = open_timeout
      @read_timeout = read_timeout
      @write_timeout = write_timeout
      @ssl_timeout = ssl_timeout
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
deepl-rb-3.1.0 lib/http_client_options.rb
deepl-rb-3.0.2 lib/http_client_options.rb
deepl-rb-3.0.1 lib/http_client_options.rb
deepl-rb-3.0.0 lib/http_client_options.rb