@Generated(value="jsii-pacmak/1.14.1 (build 828de8a)", date="2020-11-24T22:28:36.638Z") @Stability(value=Experimental) public interface RedirectResponse extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
RedirectResponse.Builder
A builder for
RedirectResponse |
static class |
RedirectResponse.Jsii$Proxy
An implementation for
RedirectResponse |
| Modifier and Type | Method and Description |
|---|---|
static RedirectResponse.Builder |
builder() |
default String |
getHost()
(experimental) The hostname.
|
default String |
getPath()
(experimental) The absolute path, starting with the leading "/".
|
default String |
getPort()
(experimental) The port.
|
default String |
getProtocol()
(experimental) The protocol.
|
default String |
getQuery()
(experimental) The query parameters, URL-encoded when necessary, but not percent-encoded.
|
String |
getStatusCode()
(experimental) The HTTP redirect code (HTTP_301 or HTTP_302).
|
@Stability(value=Experimental) @NotNull String getStatusCode()
@Stability(value=Experimental) @Nullable default String getHost()
This component is not percent-encoded. The hostname can contain #{host}.
Default: origin host of request
@Stability(value=Experimental) @Nullable default String getPath()
This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}.
Default: origin path of request
@Stability(value=Experimental) @Nullable default String getPort()
You can specify a value from 1 to 65535 or #{port}.
Default: origin port of request
@Stability(value=Experimental) @Nullable default String getProtocol()
You can specify HTTP, HTTPS, or #{protocol}. You can redirect HTTP to HTTP, HTTP to HTTPS, and HTTPS to HTTPS. You cannot redirect HTTPS to HTTP.
Default: origin protocol of request
@Stability(value=Experimental) @Nullable default String getQuery()
Do not include the leading "?", as it is automatically added. You can specify any of the reserved keywords.
Default: origin query string of request
@Stability(value=Experimental) static RedirectResponse.Builder builder()
RedirectResponse.Builder of RedirectResponseCopyright © 2020. All rights reserved.