lib/loaders/FileMeta.js
function (header) {
    this.httpHeader = parseHTTPHeader(header);

    if (this.httpHeader[ 'content-length' ]) this.size = this.httpHeader[ 'content-length' ];

    if (this.httpHeader[ 'content-type' ]) this.mime = this.httpHeader[ 'content-type' ];

    if (this.httpHeader[ 'last-modified' ]) this.lastModified = new Date(this.httpHeader[ 'last-modified' ]);
  }
function (header) {
    this.httpHeader = parseHTTPHeader(header);

    if (this.httpHeader[ 'content-length' ]) this.size = this.httpHeader[ 'content-length' ];

    if (this.httpHeader[ 'content-type' ]) this.mime = this.httpHeader[ 'content-type' ];

    if (this.httpHeader[ 'last-modified' ]) this.lastModified = new Date(this.httpHeader[ 'last-modified' ]);
  }
function ( header ) { this . httpHeader = parseHTTPHeader ( header ) ; if ( this . httpHeader [ 'content-length' ] ) this . size = this . httpHeader [ 'content-length' ] ; if ( this . httpHeader [ 'content-type' ] ) this . mime = this . httpHeader [ 'content-type' ] ; if ( this . httpHeader [ 'last-modified' ] ) this . lastModified = new Date ( this . httpHeader [ 'last-modified' ] ) ; }
This function will be called in the constructor of FileMeta. It will parse the HTTP
headers returned by a server and save useful information for development.

@method setFromHTTPHeader
@param {String} header HTTP header returned by the server
This function will be called in the constructor of FileMeta . It will parse the HTTP headers returned by a server and save useful information for development .