Package io.micronaut.http.netty.cookies
Class NettyLaxClientCookieEncoder
java.lang.Object
io.micronaut.http.netty.cookies.NettyLaxClientCookieEncoder
- All Implemented Interfaces:
ClientCookieEncoder
@Internal
public final class NettyLaxClientCookieEncoder
extends Object
implements ClientCookieEncoder
ClientCookieEncoder
implementation backed on Netty's ClientCookieEncoder.LAX
.- Since:
- 4.3.0
- Author:
- Sergio del Amo
-
Field Summary
Fields inherited from interface io.micronaut.http.cookie.ClientCookieEncoder
INSTANCE
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
NettyLaxClientCookieEncoder
public NettyLaxClientCookieEncoder()
-
-
Method Details
-
encode
Description copied from interface:ClientCookieEncoder
Encodes aCookie
into a String. Typically used to set theHttpHeaders.COOKIE
value for example in an HTTP Client. The cookie gets serialized by concatenating the cookie's name, the %x3D ("=") character, and the cookie's value.- Specified by:
encode
in interfaceClientCookieEncoder
- Parameters:
cookie
- Cookie to encode- Returns:
- The cookie serialized into a string by concatenating the cookie's name, the %x3D ("=") character, and the cookie's value.
- See Also:
-