public class CorsHandler
extends io.netty.channel.ChannelDuplexHandler
This handler can be configured using one or more CorsConfig, please
refer to this class for details about the configuration options available.
| Constructor and Description |
|---|
CorsHandler(CorsConfig config)
Creates a new instance with a single
CorsConfig. |
CorsHandler(List<CorsConfig> configList,
boolean isShortCircuit)
Creates a new instance with the specified config list.
|
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise) |
bind, close, connect, deregister, disconnect, flush, readchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic CorsHandler(CorsConfig config)
CorsConfig.public CorsHandler(List<CorsConfig> configList, boolean isShortCircuit)
configList - List of CorsConfigisShortCircuit - Same as CorsConfig.isShortCircuit() but applicable to all supplied configs.Copyright © 2008–2024 The Netty Project. All rights reserved.