Request History

<% var h = 0; _.each( history, function( historyItem ){ console.log( historyItem ); %>

<%= historyItem.request.resource %>

Request

Entry Point URL
<%= historyItem.request.resource %>
HTTP Method
<%= historyItem.request.method %>
<% if( !_.isEmpty( historyItem.request.data ) ){ %>
Request Parameters
    <% _.each( historyItem.request.data, function( param, key, data ){ %>
  • <%= key %> : <%= param %>
  • <% }) %>
<% } %> <% if( !_.isEmpty( historyItem.request.headers ) ){ %>
Request Headers
    <% _.each( historyItem.request.headers, function( param, key, headers ){ %>
  • <%= key %> : <%= param %>
  • <% }) %>
<% } %>

Response

<% var responseEcho = JSON.parse( historyItem.response.responseText ); var responseObject = { "status": responseEcho.status_code, "statusText": responseEcho.status_text, "responseText": responseEcho.filecontent, getAllResponseHeaders: function(){ return responseEcho.responseheader; }, getResponseHeader: function( headerName ){ return responseEcho.responseheader[ headerName ]; } } %> <%= responseTemplate( { "response" : responseObject } ) %>
<% h++; }); %>