Package | Description |
---|---|
io.vertx.ext.web.handler | |
io.vertx.reactivex.ext.web.handler | |
io.vertx.rxjava.ext.web.handler | |
io.vertx.rxjava3.ext.web.handler |
Modifier and Type | Method and Description |
---|---|
CorsHandler |
CorsHandler.addOrigin(String origin)
Add an origin to the list of allowed Origins.
|
CorsHandler |
CorsHandler.addOrigins(List<String> origins)
Set the list of allowed origins.
|
CorsHandler |
CorsHandler.addRelativeOrigin(String origin)
Add a relative origin to the list of allowed Origins.
|
CorsHandler |
CorsHandler.addRelativeOrigins(List<String> origins)
Set the list of allowed relative origins.
|
CorsHandler |
CorsHandler.allowCredentials(boolean allow)
Set whether credentials are allowed.
|
CorsHandler |
CorsHandler.allowedHeader(String headerName)
Add an allowed header
|
CorsHandler |
CorsHandler.allowedHeaders(Set<String> headerNames)
Add a set of allowed headers
|
CorsHandler |
CorsHandler.allowedMethod(HttpMethod method)
Add an allowed method
|
CorsHandler |
CorsHandler.allowedMethods(Set<HttpMethod> methods)
Add a set of allowed methods
|
CorsHandler |
CorsHandler.allowPrivateNetwork(boolean allow)
Set whether access from public to private networks are allowed.
|
static CorsHandler |
CorsHandler.create()
Create a empty CORS handler that allows
* origin. |
static CorsHandler |
CorsHandler.create(String allowedOriginPattern)
Deprecated.
patterns should use the relative origin method.
Create a CORS handler using a regular expression to match origins. An origin follows rfc6454#section-7
and is expected to have the format:
<scheme> "://" <hostname> [ ":" <port> ] |
CorsHandler |
CorsHandler.exposedHeader(String headerName)
Add an exposed header
|
CorsHandler |
CorsHandler.exposedHeaders(Set<String> headerNames)
Add a set of exposed headers
|
CorsHandler |
CorsHandler.maxAgeSeconds(int maxAgeSeconds)
Set how long the browser should cache the information
|
Modifier and Type | Method and Description |
---|---|
CorsHandler |
CorsHandler.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static CorsHandler |
CorsHandler.newInstance(CorsHandler arg) |
Constructor and Description |
---|
CorsHandler(CorsHandler delegate) |
Modifier and Type | Method and Description |
---|---|
CorsHandler |
CorsHandler.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static CorsHandler |
CorsHandler.newInstance(CorsHandler arg) |
Constructor and Description |
---|
CorsHandler(CorsHandler delegate) |
Modifier and Type | Method and Description |
---|---|
CorsHandler |
CorsHandler.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static CorsHandler |
CorsHandler.newInstance(CorsHandler arg) |
Constructor and Description |
---|
CorsHandler(CorsHandler delegate) |
Copyright © 2024 Eclipse. All rights reserved.