Create an http request method