Updates msg
's URI according to its status code and "Location" header, and requeues it on this
.
Use this when you have set NO_REDIRECT on a message, but have decided to allow a particular redirection to occur, or if you want to allow a redirection that Session will not perform automatically (eg, redirecting a non-safe method such as DELETE).
If msg
's status code indicates that it should be retried as a GET request, then msg
will be modified
accordingly.
If msg
has already been redirected too many times, this will cause it to fail with
TOO_MANY_REDIRECTS.
this |
the session |
msg |
a Message that has received a 3xx response |
|