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
87 def self.included(klass)
88   klass.__send__(:attr_writer, :redirect_request)
89 end

Public Instance methods

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