Class RedirectPlugin
Plugin to implement HTTP redirects. Can redirect like a web browser or using strict RFC 2616 compliance
- Guzzle\Http\RedirectPlugin implements Symfony\Component\EventDispatcher\EventSubscriberInterface
public static
array
|
|
public
|
#
onRequestClone(
Clean up the parameters of a request when it is cloned |
public
|
|
protected
|
#
createRedirectRequest(
Create a redirect request for a specific request object |
protected
|
#
cloneRequestWithGetMethod(
Clone a request while changing the method to GET. Emulates the behavior of Guzzle\Http\Message\Request::clone, but can change the HTTP method. |
protected
|
#
prepareRedirection(
Prepare the request for redirection and enforce the maximum number of allowed redirects per client |
protected
|
#
throwTooManyRedirectsException(
Throw a too many redirects exception for a request |
string |
REDIRECT_COUNT
|
'redirect.count' |
|
string |
MAX_REDIRECTS
|
'redirect.max' |
|
string |
STRICT_REDIRECTS
|
'redirect.strict' |
|
string |
PARENT_REQUEST
|
'redirect.parent_request' |
|
string |
DISABLE
|
'redirect.disable' |
protected
integer
|
$defaultMaxRedirects | 5 |
#
Default number of redirects allowed when no setting is supplied by a request |