public static void addRequestDebugForMessage(SessionContext ctx, ZuulMessage message, String prefix) {
        for (Header header : message.getHeaders().entries()) {
            Debug.addRequestDebug(ctx, prefix + " " + header.getKey() + " " + header.getValue());
        }

        if (message.hasBody()) {
            String bodyStr = message.getBodyAsText();
            Debug.addRequestDebug(ctx, prefix + " " + bodyStr);
        }
    }
Simple wrapper class around the RequestContext for setting and managing Request level Debug data.
@author Mikey Cohen
Date: 1/25/12
Time: 2:26 PM
zuul-core/src/main/java/com/netflix/zuul/context/Debug.java