function Response(body, ref) {
    var url = ref.url;
    var headers = ref.headers;
    var status = ref.status;
    var statusText = ref.statusText;


    this.url = url;
    this.ok = status >= 200 && status < 300;
    this.status = status || 0;
    this.statusText = statusText || '';
    this.headers = new Headers(headers);
    this.body = body;

    if (isString(body)) {

        this.bodyText = body;

    } else if (isBlob(body)) {

        this.bodyBlob = body;

        if (isBlobText(body)) {
            this.bodyText = blobText(body);
        }
    }
}
function Response(body, ref) {
    var url = ref.url;
    var headers = ref.headers;
    var status = ref.status;
    var statusText = ref.statusText;


    this.url = url;
    this.ok = status >= 200 && status < 300;
    this.status = status || 0;
    this.statusText = statusText || '';
    this.headers = new Headers(headers);
    this.body = body;

    if (isString(body)) {

        this.bodyText = body;

    } else if (isBlob(body)) {

        this.bodyBlob = body;

        if (isBlobText(body)) {
            this.bodyText = blobText(body);
        }
    }
}
function Response ( body , ref ) { var url = ref . url ; var headers = ref . headers ; var status = ref . status ; var statusText = ref . statusText ; this . url = url ; this . ok = status >= 200 && status < 300 ; this . status = status || 0 ; this . statusText = statusText || '' ; this . headers = new Headers ( headers ) ; this . body = body ; if ( isString ( body ) ) { this . bodyText = body ; } else if ( isBlob ( body ) ) { this . bodyBlob = body ; if ( isBlobText ( body ) ) { this . bodyText = blobText ( body ) ; } } }
HTTP Response.
HTTP Response .
Response object constructor.