public interface RedirectSpecification
Modifier and Type | Method and Description |
---|---|
RequestSpecification |
allowCircular(boolean allowCircularRedirects)
Defines whether circular redirects are allowed.
|
RequestSpecification |
follow(boolean followRedirects)
Defines whether redirects should be followed automatically.
|
RequestSpecification |
max(int maxNumberOfRedirect)
Limit the number of redirects to prevent infinite loops.
|
RequestSpecification |
rejectRelative(boolean rejectRelativeRedirects)
Defines whether relative redirects should be allowed.
|
RequestSpecification max(int maxNumberOfRedirect)
100
.maxNumberOfRedirect
- The max number of redirects allowedRequestSpecification follow(boolean followRedirects)
true
.followRedirects
- true
means redirects will be followed automaticallyRequestSpecification allowCircular(boolean allowCircularRedirects)
false
.allowCircularRedirects
- true
means circular redirects are allowed.RequestSpecification rejectRelative(boolean rejectRelativeRedirects)
false
.rejectRelativeRedirects
- true
means relative redirects are rejected.Copyright © 2010–2019. All rights reserved.