1 | /**
|
2 | * The namespace used to register global event listeners for request building and sending.
|
3 | */
|
4 | export namespace EventListeners {
|
5 | /**
|
6 | * The namespace used to register global event listeners for request building and sending.
|
7 | */
|
8 | export namespace Core {
|
9 | /**
|
10 | * Removes an event listener from all requests.
|
11 | */
|
12 | export function removeListener(eventName: string, eventListener: Function): void;
|
13 | /**
|
14 | * A request listener that reads data from the HTTP connection in order to build the response data. Handles the 'httpData' Request event.
|
15 | * Remove this handler if you are overriding the 'httpData' event and do not want extra data processing and buffering overhead.
|
16 | */
|
17 | export function HTTP_DATA(): void;
|
18 | /**
|
19 | * A request listener that initiates the HTTP connection for a request being sent. Handles the 'send' Request event.
|
20 | */
|
21 | export function SEND(): void;
|
22 | /**
|
23 | * A request listener that validates whether the request is being sent with credentials. Handles the 'validate' Request event
|
24 | */
|
25 | export function VALIDATE_CREDENTIALS(): void;
|
26 | /**
|
27 | * A request listener that validates input parameters in a request. Handles the 'validate' Request event.
|
28 | */
|
29 | export function VALIDATE_PARAMETERS(): void;
|
30 | /**
|
31 | * A request listener that validates whether the region is set for a request. Handles the 'validate' Request event.
|
32 | */
|
33 | export function VALIDATE_REGION():void;
|
34 | }
|
35 | } |
\ | No newline at end of file |