New http method handling pattern