app/templates/public/swagger-ui/swagger-ui.js
function(data) {
    var h, headerArray, headers, i, l, len, o;
    headers = {};
    headerArray = data.getAllResponseHeaders().split('\r');
    for (l = 0, len = headerArray.length; l < len; l++) {
      i = headerArray[l];
      h = i.match(/^([^:]*?):(.*)$/);
      if (!h) {
        h = [];
      }
      h.shift();
      if (h[0] !== void 0 && h[1] !== void 0) {
        headers[h[0].trim()] = h[1].trim();
      }
    }
    o = {};
    o.content = {};
    o.content.data = data.responseText;
    o.headers = headers;
    o.request = {};
    o.request.url = this.invocationUrl;
    o.status = data.status;
    return o;
  }
function(data) {
    var h, headerArray, headers, i, l, len, o;
    headers = {};
    headerArray = data.getAllResponseHeaders().split('\r');
    for (l = 0, len = headerArray.length; l < len; l++) {
      i = headerArray[l];
      h = i.match(/^([^:]*?):(.*)$/);
      if (!h) {
        h = [];
      }
      h.shift();
      if (h[0] !== void 0 && h[1] !== void 0) {
        headers[h[0].trim()] = h[1].trim();
      }
    }
    o = {};
    o.content = {};
    o.content.data = data.responseText;
    o.headers = headers;
    o.request = {};
    o.request.url = this.invocationUrl;
    o.status = data.status;
    return o;
  }
function ( data ) { var h , headerArray , headers , i , l , len , o ; headers = { } ; headerArray = data . getAllResponseHeaders ( ) . split ( '\r' ) ; for ( l = 0 , len = headerArray . length ; l < len ; l ++ ) { i = headerArray [ l ] ; h = i . match ( / ^([^:]*?):(.*)$ / ) ; if ( ! h ) { h = [ ] ; } h . shift ( ) ; if ( h [ 0 ] !== void 0 && h [ 1 ] !== void 0 ) { headers [ h [ 0 ] . trim ( ) ] = h [ 1 ] . trim ( ) ; } } o = { } ; o . content = { } ; o . content . data = data . responseText ; o . headers = headers ; o . request = { } ; o . request . url = this . invocationUrl ; o . status = data . status ; return o ; }
wraps a jquery response as a shred response
wraps a jquery response as a shred response