define http methods for views