parsing http methods