public String getBody() {
        final StringBuilder sb = new StringBuilder();
        sb.append(this.value);
        parameters.forEach(parameter -> {
            sb.append("; ");
            sb.append(parameter.getName());
            sb.append("=\"");
            final String v = parameter.getValue();
            for (int n = 0; n < v.length(); n++) {
                final char ch = v.charAt(n);
                if (ch == '"' || ch == '\\' ) {
                    sb.append("\\");
                }
                sb.append(ch);
            }
            sb.append("\"");
        });
        return sb.toString();
    }
Converts this instance to a body String.

@return this instance as a body String.
httpclient5/src/main/java/org/apache/hc/client5/http/entity/mime/MimeField.java