add head() method for HEAD requests