| chan.http.HttpRequest.RedirectHandler |
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| HttpRequest.RedirectHandler.Action | Redirection handler result. |
||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| BROWSER |
|
||||||||||
| NONE |
|
||||||||||
| STRICT |
|
||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
HTTP client will call this method every time it reaches redirect response code. | |||||||||||
HttpRequest.RedirectHandler implementation. This handler will follow all redirects with GET method.
HttpRequest.RedirectHandler implementation. This handler will not follow any redirects.
HttpRequest.RedirectHandler implementation. This handler will follow 301 and 302 redirects
with previous method. The rest will be followed with GET method.
HTTP client will call this method every time it reaches redirect response code.
You must return the most suitable HttpRequest.RedirectHandler.Action type for this response.
| Parameters | |
|---|---|
responseCode |
int:
Response code. |
requestedUri |
Uri:
Requested URI. |
redirectedUri |
Uri:
URI decoded from Location header. |
holder |
HttpHolder:
HTTP holder instance. |
| Returns | |
|---|---|
HttpRequest.RedirectHandler.Action |
HttpRequest.RedirectHandler.Action type. |
| Throws | |
|---|---|
HttpException |
if HTTP exception occurred. |