@http4t/core
Advanced tools
Comparing version 0.3.62 to 0.3.63
{ | ||
"name": "@http4t/core", | ||
"version": "0.3.62", | ||
"version": "0.3.63", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -5,3 +5,4 @@ import { Header, HttpBody, HttpResponse } from "./contract"; | ||
export declare function notFound(body?: HttpBody, ...headers: Header[]): HttpResponse; | ||
export declare function noContent(...headers: Header[]): HttpResponse; | ||
export * from "./messages"; | ||
//# sourceMappingURL=responses.d.ts.map |
@@ -13,3 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.notFound = exports.ok = exports.responseOf = void 0; | ||
exports.noContent = exports.notFound = exports.ok = exports.responseOf = void 0; | ||
function responseOf(status, body, ...headers) { | ||
@@ -27,3 +27,7 @@ return { status, headers: headers, body: body ? body : '' }; | ||
exports.notFound = notFound; | ||
function noContent(...headers) { | ||
return responseOf(204, undefined, ...headers); | ||
} | ||
exports.noContent = noContent; | ||
__exportStar(require("./messages"), exports); | ||
//# sourceMappingURL=responses.js.map |
@@ -15,2 +15,6 @@ import {Header, HttpBody, HttpResponse} from "./contract"; | ||
export function noContent(...headers: Header[]): HttpResponse { | ||
return responseOf(204, undefined, ...headers); | ||
} | ||
export * from "./messages"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
278476
2924