Creates a cookie copy that be accessible only through the HTTP protocol.
public function withHttpOnly(bool $httpOnly = true) : static { $cookie = clone $this; $cookie->httpOnly = $httpOnly; return $cookie; }