would_redirect


Description:

[ Version ( since = "2.38" ) ]
public bool would_redirect (Message msg)

Checks if msg contains a response that would cause this to redirect it to a new URL (ignoring msg's NO_REDIRECT flag, and the number of times it has already been redirected).

Parameters:

this

a Session

msg

a Message that has response headers

Returns:

whether msg would be redirected