added support for http methods