public HttpResponse management(String request) throws IOException {
        request = request.trim();
        request = request.split("\n")[0];
        String[] requestLine = request.split(" ");
        String method, resource = "index.html", version;
        if(requestLine.length > 3){
            method = requestLine[0];
            resource = requestLine[1];
            version = requestLine[2];
            return request(method, resource, version);
        }
        else if(requestLine.length == 3){        
            method = requestLine[0];
            resource = requestLine[1];
            version = requestLine[2];
            return request(method, resource, version);
        }else if(requestLine.length == 2){
            method = requestLine[0];
            resource = requestLine[1];
            return request(method, resource);
        }else{
            method = requestLine[0];
            return request(method, resource);
        }
    }