1 | /**
|
2 | * -------------------------------------------------------------------------------------------
|
3 | * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
|
4 | * See License in the project root for license information.
|
5 | * -------------------------------------------------------------------------------------------
|
6 | */
|
7 | import { FetchOptions } from "./IFetchOptions";
|
8 | import { MiddlewareControl } from "./middleware/MiddlewareControl";
|
9 | /**
|
10 | * @interface
|
11 | * @property {RequestInfo} request - The request url string or the Request instance
|
12 | * @property {FetchOptions} [options] - The options for the request
|
13 | * @property {Response} [response] - The response content
|
14 | * @property {MiddlewareControl} [middlewareControl] - The options for the middleware chain
|
15 | */
|
16 | export interface Context {
|
17 | request: RequestInfo;
|
18 | options?: FetchOptions;
|
19 | response?: Response;
|
20 | middlewareControl?: MiddlewareControl;
|
21 | }
|