protected HttpRequest processRequest(BufferedReader bufferedReader, String baseDir) throws IOException {
        switch (action) {
            case "GET":
                return new GetRequest(baseDir + fileName);
            case "DELETE":
                return new DeleteRequest(baseDir + fileName);
            case "PUT":
                return new PutRequest(baseDir + fileName, parsePutBodyData(bufferedReader).toCharArray());
        }

        return new InvalidHttpRequest();
    }