Add missing method on Response class

Added missing method (type) for setting content-type
This commit is contained in:
Oskar Karlsson
2015-07-28 09:37:47 +02:00
parent db3a54c801
commit 22ade6d066
+3
View File
@@ -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;
}