all files / lib/ server-types.js

100% Statements 21/21
75% Branches 3/4
100% Functions 3/3
100% Lines 20/20
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          15×              
"use strict";
(function (HttpMethod) {
    HttpMethod[HttpMethod["GET"] = 0] = "GET";
    HttpMethod[HttpMethod["POST"] = 1] = "POST";
    HttpMethod[HttpMethod["PUT"] = 2] = "PUT";
    HttpMethod[HttpMethod["DELETE"] = 3] = "DELETE";
    HttpMethod[HttpMethod["HEAD"] = 4] = "HEAD";
    HttpMethod[HttpMethod["OPTIONS"] = 5] = "OPTIONS";
    HttpMethod[HttpMethod["PATCH"] = 6] = "PATCH";
})(exports.HttpMethod || (exports.HttpMethod = {}));
var HttpMethod = exports.HttpMethod;
class ServiceContext {
}
exports.ServiceContext = ServiceContext;
class HttpError extends Error {
    constructor(name, statusCode, message) {
        super(message);
        this.statusCode = statusCode;
        this.message = message;
        this.name = name;
        this.stack = (new Error()).stack;
    }
}
exports.HttpError = HttpError;
class ReferencedResource {
    constructor(location, statusCode) {
        this.location = location;
        this.statusCode = statusCode;
    }
}
exports.ReferencedResource = ReferencedResource;