Sha256: 98df092541b099896f15c58d1621f66bb7eb2fd668a4f8866f8128a538f47daa

Contents?: true

Size: 517 Bytes

Versions: 10

Compression:

Stored size: 517 Bytes

Contents

module HttpUtilities
  module Http
    class Request
      include HttpUtilities::Http::Logger
      include HttpUtilities::Http::ProxySupport
      include HttpUtilities::Http::UserAgent
      
      attr_accessor :interface, :proxy, :user_agent
      
      def initialize(interface: nil, proxy: {}, options: {})
        self.interface  =   interface
        self.proxy      =   proxy
        
        self.set_user_agent(device: options.fetch(:user_agent_device, :desktop))
      end
            
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
http_utilities-1.3.2 lib/http_utilities/http/request.rb
http_utilities-1.3.1 lib/http_utilities/http/request.rb
http_utilities-1.3.0 lib/http_utilities/http/request.rb
http_utilities-1.2.7 lib/http_utilities/http/request.rb
http_utilities-1.2.6.5 lib/http_utilities/http/request.rb
http_utilities-1.2.6.4 lib/http_utilities/http/request.rb
http_utilities-1.2.6.3 lib/http_utilities/http/request.rb
http_utilities-1.2.6.2 lib/http_utilities/http/request.rb
http_utilities-1.2.6.1 lib/http_utilities/http/request.rb
http_utilities-1.2.6 lib/http_utilities/http/request.rb