1 | /*
|
2 | * Copyright 2022 Adobe. All rights reserved.
|
3 | * This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
4 | * you may not use this file except in compliance with the License. You may obtain a copy
|
5 | * of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6 | *
|
7 | * Unless required by applicable law or agreed to in writing, software distributed under
|
8 | * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
9 | * OF ANY KIND, either express or implied. See the License for the specific language
|
10 | * governing permissions and limitations under the License.
|
11 | */
|
12 |
|
13 | import api from './fetch/index.js';
|
14 |
|
15 | export const ALPNProtocol = {
|
16 | ALPN_HTTP2: api.ALPN_HTTP2,
|
17 | ALPN_HTTP2C: api.ALPN_HTTP2C,
|
18 | ALPN_HTTP1_1: api.ALPN_HTTP1_1,
|
19 | ALPN_HTTP1_0: api.ALPN_HTTP1_0,
|
20 | };
|
21 |
|
22 | export const {
|
23 | fetch,
|
24 | context,
|
25 | reset,
|
26 | noCache,
|
27 | h1,
|
28 | keepAlive,
|
29 | h1NoCache,
|
30 | keepAliveNoCache,
|
31 | cacheStats,
|
32 | clearCache,
|
33 | offPush,
|
34 | onPush,
|
35 | createUrl,
|
36 | timeoutSignal,
|
37 | Body,
|
38 | Headers,
|
39 | Request,
|
40 | Response,
|
41 | AbortController,
|
42 | AbortError,
|
43 | AbortSignal,
|
44 | FetchBaseError,
|
45 | FetchError,
|
46 | ALPN_HTTP2,
|
47 | ALPN_HTTP2C,
|
48 | ALPN_HTTP1_1,
|
49 | ALPN_HTTP1_0,
|
50 | } = api;
|