Parse har file and generate a method which get/post the request and return the response.