method

follow_redirect!

follow_redirect!()
public

Follow a single redirect response. If the last response was not a redirect, an exception will be raised. Otherwise, the redirect is performed on the location header.