UNPKG

1.1 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 * @returns A reference to the response object.
24 */
25 end(...args: any[]): any;
26 /**
27 * When implemented in a derived class, sends the response.
28 *
29 * @param body The response payload.
30 * @returns A reference to the response object.
31 */
32 send(body: any): any;
33 /**
34 * When implemented in a derived class, sets the HTTP status code for the response.
35 *
36 * @param status The status code to use.
37 * @returns The status code.
38 */
39 status(status: number): any;
40}
41//# sourceMappingURL=webResponse.d.ts.map
\No newline at end of file