public CookieBuilder domain(String domain) {
        this.domain = trimDomainDot(validateAttributeValue(domain, "domain"));
        return this;
    }
Sets the domain of the {@link Cookie}.
core/src/main/java/com/linecorp/armeria/common/CookieBuilder.java