Package org.opensearch.http
Class CorsHandler
java.lang.Object
org.opensearch.http.CorsHandler
This file is forked from the https://netty.io project. In particular it combines the following three
files: io.netty.handler.codec.http.cors.CorsHandler, io.netty.handler.codec.http.cors.CorsConfig, and
io.netty.handler.codec.http.cors.CorsConfigBuilder.
It modifies the original netty code to operate on OpenSearch http request/response abstractions. Additionally, it removes CORS features that are not used by OpenSearch.
- Opensearch.internal:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CorsHandler.Config
buildConfig
(Settings settings) static CorsHandler
disabled()
static CorsHandler
fromSettings
(Settings settings) handleInbound
(HttpRequest request) void
setCorsResponseHeaders
(HttpRequest httpRequest, HttpResponse httpResponse)
-
Field Details
-
ANY_ORIGIN
- See Also:
-
ORIGIN
- See Also:
-
DATE
- See Also:
-
VARY
- See Also:
-
HOST
- See Also:
-
ACCESS_CONTROL_REQUEST_METHOD
- See Also:
-
ACCESS_CONTROL_ALLOW_HEADERS
- See Also:
-
ACCESS_CONTROL_ALLOW_CREDENTIALS
- See Also:
-
ACCESS_CONTROL_ALLOW_METHODS
- See Also:
-
ACCESS_CONTROL_ALLOW_ORIGIN
- See Also:
-
ACCESS_CONTROL_MAX_AGE
- See Also:
-
-
Constructor Details
-
CorsHandler
-
-
Method Details
-
handleInbound
-
setCorsResponseHeaders
-
disabled
-
buildConfig
-
fromSettings
-