ClientCookieDecoder
或ServerCookieDecoder
。
将HTTP标头值解码为Cookie
。
该解码器可以解码HTTP cookie版本0,1和2。
HttpRequest
req = ...;
String value = req.getHeader("Cookie");
Set<Cookie
> cookies = CookieDecoder
.decode(value);
@Deprecated
public final class CookieDecoder
extends java.lang.Object
Copyright © 2008–2018 The Netty Project. All rights reserved.