added head() method for HEAD requests