@softchef/cdk-iot-device-management
Version:
IoT device management is composed of things, thing types, thing groups, jobs, files API services. The constructs can be used independently, that are based on full-managed service to create an API Gateway & Lambda function.
16 lines (15 loc) • 484 B
JavaScript
var HttpResponse = (function () {
function HttpResponse(options) {
this.statusCode = options.statusCode;
this.headers = options.headers || {};
this.body = options.body;
}
HttpResponse.isInstance = function (response) {
if (!response)
return false;
var resp = response;
return typeof resp.statusCode === "number" && typeof resp.headers === "object";
};
return HttpResponse;
}());
export { HttpResponse };