Created a request class to handle get, post, request and cookie instead of doing it when it might not be needed.