static List<String> toSetCookieHeaders(boolean strict, Cookie... cookies) {
        requireNonNull(cookies, "cookies");
        if (cookies.length == 0) {
            return ImmutableList.of();
        }

        final ImmutableList.Builder<String> encoded = ImmutableList.builderWithExpectedSize(cookies.length);
        for (final Cookie c : cookies) {
            encoded.add(c.toSetCookieHeader(strict));
        }
        return encoded.build();
    }
Encodes the specified {@link Cookie}s into {@code "Set-Cookie"} header values.

@param strict whether to validate that the cookie names and values are in the valid scope
              defined in RFC 6265.
@param cookies the {@link Cookie}s to encode.
@return the encoded {@code "Set-Cookie"} header values.
core/src/main/java/com/linecorp/armeria/common/Cookie.java