htmv 0.0.63 → 0.0.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/http/helpers.d.ts +2 -0
- package/dist/http/helpers.js +6 -0
- package/package.json +1 -1
package/dist/http/helpers.d.ts
CHANGED
|
@@ -4,3 +4,5 @@ export declare function badRequest(body?: string | object, headers?: Headers): H
|
|
|
4
4
|
export declare function created(body?: string | object, headers?: Headers): HttpResponse;
|
|
5
5
|
export declare function ok(body?: string | object, headers?: Headers): HttpResponse;
|
|
6
6
|
export declare function noContent(headers?: Headers): HttpResponse;
|
|
7
|
+
export declare function unauthorized(body?: string | object, headers?: Headers): HttpResponse;
|
|
8
|
+
export declare function forbidden(body?: string | object, headers?: Headers): HttpResponse;
|
package/dist/http/helpers.js
CHANGED
|
@@ -14,3 +14,9 @@ export function ok(body, headers) {
|
|
|
14
14
|
export function noContent(headers) {
|
|
15
15
|
return requestHelper(204, undefined, headers);
|
|
16
16
|
}
|
|
17
|
+
export function unauthorized(body, headers) {
|
|
18
|
+
return requestHelper(401, body, headers);
|
|
19
|
+
}
|
|
20
|
+
export function forbidden(body, headers) {
|
|
21
|
+
return requestHelper(403, body, headers);
|
|
22
|
+
}
|