Skip to content

Commit

Permalink
FIX add compressed to ResponseObject type
Browse files Browse the repository at this point in the history
  • Loading branch information
friendofdog authored and Marsup committed Jan 29, 2024
1 parent d59bdc6 commit 7c67d19
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/types/response.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7c67d19

Please sign in to comment.