UNPKG

1.12 kBTypeScriptView Raw
1/**
2 * @module botbuilder
3 */
4/**
5 * Copyright (c) Microsoft Corporation. All rights reserved.
6 * Licensed under the MIT License.
7 */
8/**
9 * Represents an Express or Restify response object.
10 *
11 * This interface supports the framework and is not intended to be called directly for your code.
12 */
13export interface WebResponse {
14 /**
15 *
16 * Optional. The underlying socket.
17 */
18 socket?: any;
19 /**
20 * When implemented in a derived class, sends a FIN packet.
21 *
22 * @param args The arguments for the end event.
23 *
24 * @returns A reference to the response object.
25 */
26 end(...args: any[]): any;
27 /**
28 * When implemented in a derived class, sends the response.
29 *
30 * @param body The response payload.
31 *
32 * @returns A reference to the response object.
33 */
34 send(body: any): any;
35 /**
36 * When implemented in a derived class, sets the HTTP status code for the response.
37 *
38 * @param status The status code to use.
39 *
40 * @returns The status code.
41 */
42 status(status: number): any;
43}
44//# sourceMappingURL=webResponse.d.ts.map
\No newline at end of file