module HTTPX::Plugins::FollowRedirects

  1. lib/httpx/plugins/follow_redirects.rb

This plugin adds support for following redirect (status 30X) responses.

It has an upper bound of followed redirects (see MAX_REDIRECTS), after which it will return the last redirect response. It will not raise an exception.

It also doesn’t follow insecure redirects (https -> http) by default (see follow_insecure_redirects).

gitlab.com/os85/httpx/wikis/Follow-Redirects

Constants

MAX_REDIRECTS = 3  
REDIRECT_STATUS = (300..399).freeze