From 22ade6d066a3a8dc3bdac0f3b1e8a14102605be4 Mon Sep 17 00:00:00 2001 From: Oskar Karlsson Date: Tue, 28 Jul 2015 09:37:47 +0200 Subject: [PATCH] Add missing method on Response class Added missing method (type) for setting content-type --- hapi/hapi.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hapi/hapi.d.ts b/hapi/hapi.d.ts index adf166565..ae8090165 100644 --- a/hapi/hapi.d.ts +++ b/hapi/hapi.d.ts @@ -1407,6 +1407,9 @@ declare module "hapi" { options - optional configuration. If the state was previously registered with the server using server.state(), the specified keys in options override those same keys in the server definition (but not others).*/ state(name: string, value: string, options?: any): void; + /** type(mimeType) - sets the HTTP 'Content-Type' header where: + mimeType - is the mime type. Should only be used to override the built-in default for each response type. */ + type(mimeType: string): void; }