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
|
|
public
|
#
cleanupRequest(
Clean up the parameters of a request when it is cloned |
public
|
|
protected
|
#
getOriginalRequest(
Get the original request that initiated a series of redirects |
protected
|
#
createRedirectRequest(
Create a redirect request for a specific request object |
protected
|
#
prepareRedirection(
Prepare the request for redirection and enforce the maximum number of allowed redirects per client |
protected
|
#
sendRedirectRequest(
Send a redirect request and handle any errors |
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
Default number of redirects allowed when no setting is supplied by a request |
#
5
|