@Override
    protected void setBodyList(boolean isSingle, List<String> bodyList) throws ProxyEventException {
        String tmpValue;
        if (isSingle) {
            if (StringUtils.isBlank(bodyList.get(0))) {
                throw new ProxyEventException("body is null or empty!");
            }
            tmpValue = bodyList.get(0).trim();
            this.bodyList.add(tmpValue);
            this.bodySize = tmpValue.length();
            this.msgCnt = 1;
        } else {
            if (bodyList == null || bodyList.isEmpty()) {
                throw new ProxyEventException("bodyList is null or empty!");
            }
            for (String body : bodyList) {
                if (StringUtils.isBlank(body)) {
                    continue;
                }
                tmpValue = body.trim();
                this.bodyList.add(tmpValue.trim());
                this.bodySize += tmpValue.length();
                this.msgCnt++;
            }
            if (this.bodyList.isEmpty()) {
                throw new ProxyEventException("bodyList no valid content!");
            }
        }
    }
HTTP Event Information class

Used to encapsulate the data information reported by HTTP
inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/sender/http/HttpEventInfo.java