in runner-plugin-sdk/src/main/java/org/apache/apisix/plugin/runner/HttpResponse.java [65:77]
public void setReqHeader(String headerKey, String headerValue) {
// key is null will cause the request to block
if (headerKey == null) {
logger.warn("headerKey is null, ignore it");
return;
}
actionType = ActionType.Rewrite;
if (Objects.isNull(reqHeaders)) {
reqHeaders = new HashMap<>();
}
reqHeaders.put(headerKey, headerValue);
}