private String parseHeaderString() throws IOException {
        StringBuilder requestHeaders = new StringBuilder();
        String readLine = input.readLine();
        while (readLine != null && !readLine.equals("")) {
            requestHeaders.append(readLine).append("\r\n");
            readLine = input.readLine();
        }
        return requestHeaders.toString();
    }