all files / lib/ server-return.js

84.44% Statements 38/45
40% Branches 6/15
71.43% Functions 10/14
88.1% Lines 37/42
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59                                           
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var server_types_1 = require("./server-types");
var NewResource = (function (_super) {
    __extends(NewResource, _super);
    function NewResource(location) {
        return _super.call(this, location, 201) || this;
    }
    return NewResource;
}(server_types_1.ReferencedResource));
exports.NewResource = NewResource;
var RequestAccepted = (function (_super) {
    __extends(RequestAccepted, _super);
    function RequestAccepted(location) {
        return _super.call(this, location, 202) || this;
    }
    return RequestAccepted;
}(server_types_1.ReferencedResource));
exports.RequestAccepted = RequestAccepted;
var MovedPermanently = (function (_super) {
    __extends(MovedPermanently, _super);
    function MovedPermanently(location) {
        return _super.call(this, location, 301) || this;
    }
    return MovedPermanently;
}(server_types_1.ReferencedResource));
exports.MovedPermanently = MovedPermanently;
var MovedTemporarily = (function (_super) {
    __extends(MovedTemporarily, _super);
    function MovedTemporarily(location) {
        return _super.call(this, location, 302) || this;
    }
    return MovedTemporarily;
}(server_types_1.ReferencedResource));
exports.MovedTemporarily = MovedTemporarily;
var DownloadResource = (function () {
    function DownloadResource(filePath, fileName) {
        this.filePath = filePath;
        this.fileName = fileName;
    }
    return DownloadResource;
}());
exports.DownloadResource = DownloadResource;
var DownloadBinaryData = (function () {
    function DownloadBinaryData(content, mimeType, fileName) {
        this.content = content;
        this.mimeType = mimeType;
        this.fileName = fileName;
    }
    return DownloadBinaryData;
}());
exports.DownloadBinaryData = DownloadBinaryData;
 
//# sourceMappingURL=server-return.js.map