Session.wouldRedirect

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

class Session
bool
wouldRedirect

Parameters

msg Message

a #SoupMessage that has response headers

Return Value

Type: bool

whether @msg would be redirected

Meta

Since

2.38