Added checks for post and get request methods
Implemented Response object