Adapted this to the new finergrained HTTP.method