Sha256: 940312dc5342bb6f412863863bd1af3b57e082d6555465d2c81c03e2fd4e83d4

Contents?: true

Size: 519 Bytes

Versions: 11

Compression:

Stored size: 519 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: nil, 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

11 entries across 11 versions & 1 rubygems

Version Path
http_utilities-1.4.3 lib/http_utilities/http/request.rb
http_utilities-1.4.2 lib/http_utilities/http/request.rb
http_utilities-1.4.1 lib/http_utilities/http/request.rb
http_utilities-1.4.0 lib/http_utilities/http/request.rb
http_utilities-1.3.9 lib/http_utilities/http/request.rb
http_utilities-1.3.8 lib/http_utilities/http/request.rb
http_utilities-1.3.7 lib/http_utilities/http/request.rb
http_utilities-1.3.6 lib/http_utilities/http/request.rb
http_utilities-1.3.5 lib/http_utilities/http/request.rb
http_utilities-1.3.4 lib/http_utilities/http/request.rb
http_utilities-1.3.3 lib/http_utilities/http/request.rb