From 7c67d193f9a27112aaf729fe9ce4d112fa174494 Mon Sep 17 00:00:00 2001 From: Kevin Kee Date: Mon, 25 Sep 2023 09:24:18 +0900 Subject: [PATCH] FIX add compressed to ResponseObject type --- lib/types/response.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/types/response.d.ts b/lib/types/response.d.ts index 15fabc2ab..4b19ebc31 100644 --- a/lib/types/response.d.ts +++ b/lib/types/response.d.ts @@ -165,6 +165,14 @@ export interface ResponseObject extends Podium { */ message(httpMessage: string): ResponseObject; + /** + * Sets the HTTP 'content-encoding' header where: + * @param encoding - the header value string. + * @return Return value: the current response object. + * [See docs](https://github.com/hapijs/hapi/blob/master/API.md#-responsecompressedencoding) + */ + compressed(encoding: string): ResponseObject; + /** * Sets the HTTP status code to Created (201) and the HTTP 'Location' header where: * @param uri - an absolute or relative URI used as the 'Location' header value.