public void parseHeaders(String headersRaw) {
        String[] headers = headersRaw.split("\n");

        if (headers.length > 0) {
            String[] first = headers[0].split(" ");
            if (first.length >= 3) {
                this.variables.put("HTTP_METHOD", first[0]);
                this.variables.put("REQUEST_URI", first[1]);
                this.variables.put("SERVER_PROTOCOL", first[2]);
            }
        }
        for (int i = 1; i < headers.length; i++) {
            String[] HTTPvar = headers[i].split(":");
            this.variables.put("HTTP_" + HTTPvar[0].toUpperCase().replace('-', '_').trim(), HTTPvar[1].trim());
        }
    }