public static String getRequestHeadersOutput ( HTTP http ) { if ( http == null ) { return "" ; } StringBuilder requestHeaders = new StringBuilder ( ) ; String uuid = getUUID ( ) ; requestHeaders . append ( ONCLICK_TOGGLE ) . append ( uuid ) . append ( "\")'>Toggle Headers</a> " ) ; requestHeaders . append ( SPAN_ID ) . append ( uuid ) . append ( DISPLAY_NONE ) ; requestHeaders . append ( formatKeyPair ( http . getHeaders ( ) ) ) ; requestHeaders . append ( END_SPAN ) ; return requestHeaders . toString ( ) ; }
Takes the headers set in the HTTP request and writes them to the output file in properly HTML formatted fashion