static String encode(boolean strict, Cookie cookie) {
        requireNonNull(cookie, "cookie");
        final StringBuilder buf = stringBuilder();
        encode(strict, buf, cookie);
        return stripTrailingSeparator(buf);
    }
Encodes the specified {@link Cookie} into a single {@code "Cookie"} header value.

@param strict whether to validate that name and value chars are in the valid scope.
@param cookie the {@link Cookie} to encode.
@return a RFC 6265-style {@code "Cookie"} header value.
core/src/main/java/com/linecorp/armeria/common/ClientCookieEncoder.java