module HTTPX::Plugins::FollowRedirects::RequestMethods

  1. lib/httpx/plugins/follow_redirects.rb

Methods

Public Class

  1. included

Public Instance

  1. max_redirects
  2. redirect_request

Public Class methods

included (klass)
[show source]
   # File lib/httpx/plugins/follow_redirects.rb
86 def self.included(klass)
87   klass.__send__(:attr_writer, :redirect_request)
88 end

Public Instance methods

max_redirects ()
[show source]
   # File lib/httpx/plugins/follow_redirects.rb
94 def max_redirects
95   @options.max_redirects || MAX_REDIRECTS
96 end
redirect_request ()
[show source]
   # File lib/httpx/plugins/follow_redirects.rb
90 def redirect_request
91   @redirect_request || self
92 end