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
  • Constructor Details

    • NettyLaxClientCookieEncoder

      public NettyLaxClientCookieEncoder()
  • Method Details

    • encode

      public String encode(Cookie cookie)
      Description copied from interface: ClientCookieEncoder
      Encodes a Cookie into a String. Typically used to set the HttpHeaders.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 interface ClientCookieEncoder
      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: