@Override
    public void setHttpOnly(final boolean httpOnly) {
        this.httpOnly = httpOnly;
    }
Sets the http-only attribute of the cookie.

@param httpOnly true if this cookie is to be marked as
{@code httpOnly}, false otherwise

@since 5.2
httpclient5/src/main/java/org/apache/hc/client5/http/impl/cookie/BasicClientCookie.java