We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 647f010 commit f7afb75Copy full SHA for f7afb75
2 files changed
src/request.d.ts
@@ -4,8 +4,9 @@ import { Accepts } from 'accepts';
4
import { Readable } from 'stream';
5
import { IncomingMessage } from 'http';
6
7
-export interface Request extends IncomingMessage {
+export class Request extends IncomingMessage {
8
constructor(event: APIGatewayProxyEvent);
9
+ body: any;
10
headers: { [name: string]: string };
11
hostname: string | null;
12
method: string;
src/response.d.ts
@@ -2,7 +2,7 @@ import { Request } from "./request";
2
import { APIGatewayProxyCallback, APIGatewayProxyResult } from 'aws-lambda';
3
import { ServerResponse } from "http";
-export interface Response extends ServerResponse {
+export class Response extends ServerResponse {
/**
* Response object constructor
*
0 commit comments