@Override
public void sayRequest(ApiRequest apiRequest, String payload, List<String> headersToShow,
List<String> cookiesToShow) throws JSONException {
if (apiRequest.uri != null) {
listItem.add(new RequestDocItem(apiRequest.httpMethod, uriHelper
.uriToString(apiRequest.uri), validateAndPrettifyPayload(apiRequest.getHeader("Content-Type"), payload), filterHelper
.filterMap(apiRequest.headers, headersToShow), filterHelper.filterMap(
apiRequest.cookies, cookiesToShow)));
}
}