UNPKG

1.2 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 request object.
10 *
11 * This interface supports the framework and is not intended to be called directly for your code.
12 */
13export interface WebRequest {
14 /**
15 * Optional. The request body.
16 */
17 body?: any;
18 /***
19 * Optional. The request headers.
20 */
21 headers: any;
22 /***
23 * Optional. The request method.
24 */
25 method?: any;
26 /***
27 * Optional. The request parameters from the url.
28 */
29 params?: any;
30 /***
31 * Optional. The values from the query string.
32 */
33 query?: any;
34 /**
35 * When implemented in a derived class, adds a listener for an event.
36 * The framework uses this method to retrieve the request body when the
37 * [body](xref:botbuilder.WebRequest.body) property is `null` or `undefined`.
38 *
39 * @param event The event name.
40 * @param args Arguments used to handle the event.
41 *
42 * @returns A reference to the request object.
43 */
44 on?(event: string, ...args: any[]): any;
45}
46//# sourceMappingURL=webRequest.d.ts.map
\No newline at end of file