Fix request.raw.req type

Per the hapi [code](https://github.com/hapijs/hapi/blob/master/lib/request.js) and [documentation](http://hapijs.com/api#request-object) the correct type for the raw http request object `request.raw.req` is actually `http.IncomingMessage` and not `http.ClientRequest`.
This commit is contained in:
Prashant Tiwari
2016-07-09 14:51:05 +05:30
committed by GitHub
parent 7234823908
commit 36ce4b68fa
+2 -2
View File
@@ -964,7 +964,7 @@ declare module "hapi" {
payload: string;
rawPayload: Buffer;
raw: {
req: http.ClientRequest;
req: http.IncomingMessage;
res: http.ServerResponse
};
result: string;
@@ -1199,7 +1199,7 @@ declare module "hapi" {
query: any;
/** an object containing the Node HTTP server objects. Direct interaction with these raw objects is not recommended.*/
raw: {
req: http.ClientRequest;
req: http.IncomingMessage;
res: http.ServerResponse;
};
/** the route public interface.*/