1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Cache , typescript_type = "Cache")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `Cache` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `Cache`*"]
13     pub type Cache;
14     #[cfg(feature = "Request")]
15     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = add)]
16     #[doc = "The `add()` method."]
17     #[doc = ""]
18     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/add)"]
19     #[doc = ""]
20     #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"]
add_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise21     pub fn add_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise;
22     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = add)]
23     #[doc = "The `add()` method."]
24     #[doc = ""]
25     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/add)"]
26     #[doc = ""]
27     #[doc = "*This API requires the following crate features to be activated: `Cache`*"]
add_with_str(this: &Cache, request: &str) -> ::js_sys::Promise28     pub fn add_with_str(this: &Cache, request: &str) -> ::js_sys::Promise;
29     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = addAll)]
30     #[doc = "The `addAll()` method."]
31     #[doc = ""]
32     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/addAll)"]
33     #[doc = ""]
34     #[doc = "*This API requires the following crate features to be activated: `Cache`*"]
add_all_with_request_sequence( this: &Cache, requests: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise35     pub fn add_all_with_request_sequence(
36         this: &Cache,
37         requests: &::wasm_bindgen::JsValue,
38     ) -> ::js_sys::Promise;
39     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = addAll)]
40     #[doc = "The `addAll()` method."]
41     #[doc = ""]
42     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/addAll)"]
43     #[doc = ""]
44     #[doc = "*This API requires the following crate features to be activated: `Cache`*"]
add_all_with_str_sequence( this: &Cache, requests: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise45     pub fn add_all_with_str_sequence(
46         this: &Cache,
47         requests: &::wasm_bindgen::JsValue,
48     ) -> ::js_sys::Promise;
49     #[cfg(feature = "Request")]
50     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = delete)]
51     #[doc = "The `delete()` method."]
52     #[doc = ""]
53     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete)"]
54     #[doc = ""]
55     #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"]
delete_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise56     pub fn delete_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise;
57     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = delete)]
58     #[doc = "The `delete()` method."]
59     #[doc = ""]
60     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete)"]
61     #[doc = ""]
62     #[doc = "*This API requires the following crate features to be activated: `Cache`*"]
delete_with_str(this: &Cache, request: &str) -> ::js_sys::Promise63     pub fn delete_with_str(this: &Cache, request: &str) -> ::js_sys::Promise;
64     #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))]
65     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = delete)]
66     #[doc = "The `delete()` method."]
67     #[doc = ""]
68     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete)"]
69     #[doc = ""]
70     #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`, `Request`*"]
delete_with_request_and_options( this: &Cache, request: &Request, options: &CacheQueryOptions, ) -> ::js_sys::Promise71     pub fn delete_with_request_and_options(
72         this: &Cache,
73         request: &Request,
74         options: &CacheQueryOptions,
75     ) -> ::js_sys::Promise;
76     #[cfg(feature = "CacheQueryOptions")]
77     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = delete)]
78     #[doc = "The `delete()` method."]
79     #[doc = ""]
80     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete)"]
81     #[doc = ""]
82     #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`*"]
delete_with_str_and_options( this: &Cache, request: &str, options: &CacheQueryOptions, ) -> ::js_sys::Promise83     pub fn delete_with_str_and_options(
84         this: &Cache,
85         request: &str,
86         options: &CacheQueryOptions,
87     ) -> ::js_sys::Promise;
88     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = keys)]
89     #[doc = "The `keys()` method."]
90     #[doc = ""]
91     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"]
92     #[doc = ""]
93     #[doc = "*This API requires the following crate features to be activated: `Cache`*"]
keys(this: &Cache) -> ::js_sys::Promise94     pub fn keys(this: &Cache) -> ::js_sys::Promise;
95     #[cfg(feature = "Request")]
96     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = keys)]
97     #[doc = "The `keys()` method."]
98     #[doc = ""]
99     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"]
100     #[doc = ""]
101     #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"]
keys_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise102     pub fn keys_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise;
103     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = keys)]
104     #[doc = "The `keys()` method."]
105     #[doc = ""]
106     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"]
107     #[doc = ""]
108     #[doc = "*This API requires the following crate features to be activated: `Cache`*"]
keys_with_str(this: &Cache, request: &str) -> ::js_sys::Promise109     pub fn keys_with_str(this: &Cache, request: &str) -> ::js_sys::Promise;
110     #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))]
111     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = keys)]
112     #[doc = "The `keys()` method."]
113     #[doc = ""]
114     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"]
115     #[doc = ""]
116     #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`, `Request`*"]
keys_with_request_and_options( this: &Cache, request: &Request, options: &CacheQueryOptions, ) -> ::js_sys::Promise117     pub fn keys_with_request_and_options(
118         this: &Cache,
119         request: &Request,
120         options: &CacheQueryOptions,
121     ) -> ::js_sys::Promise;
122     #[cfg(feature = "CacheQueryOptions")]
123     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = keys)]
124     #[doc = "The `keys()` method."]
125     #[doc = ""]
126     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"]
127     #[doc = ""]
128     #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`*"]
keys_with_str_and_options( this: &Cache, request: &str, options: &CacheQueryOptions, ) -> ::js_sys::Promise129     pub fn keys_with_str_and_options(
130         this: &Cache,
131         request: &str,
132         options: &CacheQueryOptions,
133     ) -> ::js_sys::Promise;
134     #[cfg(feature = "Request")]
135     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = match)]
136     #[doc = "The `match()` method."]
137     #[doc = ""]
138     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)"]
139     #[doc = ""]
140     #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"]
match_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise141     pub fn match_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise;
142     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = match)]
143     #[doc = "The `match()` method."]
144     #[doc = ""]
145     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)"]
146     #[doc = ""]
147     #[doc = "*This API requires the following crate features to be activated: `Cache`*"]
match_with_str(this: &Cache, request: &str) -> ::js_sys::Promise148     pub fn match_with_str(this: &Cache, request: &str) -> ::js_sys::Promise;
149     #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))]
150     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = match)]
151     #[doc = "The `match()` method."]
152     #[doc = ""]
153     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)"]
154     #[doc = ""]
155     #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`, `Request`*"]
match_with_request_and_options( this: &Cache, request: &Request, options: &CacheQueryOptions, ) -> ::js_sys::Promise156     pub fn match_with_request_and_options(
157         this: &Cache,
158         request: &Request,
159         options: &CacheQueryOptions,
160     ) -> ::js_sys::Promise;
161     #[cfg(feature = "CacheQueryOptions")]
162     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = match)]
163     #[doc = "The `match()` method."]
164     #[doc = ""]
165     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)"]
166     #[doc = ""]
167     #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`*"]
match_with_str_and_options( this: &Cache, request: &str, options: &CacheQueryOptions, ) -> ::js_sys::Promise168     pub fn match_with_str_and_options(
169         this: &Cache,
170         request: &str,
171         options: &CacheQueryOptions,
172     ) -> ::js_sys::Promise;
173     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = matchAll)]
174     #[doc = "The `matchAll()` method."]
175     #[doc = ""]
176     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"]
177     #[doc = ""]
178     #[doc = "*This API requires the following crate features to be activated: `Cache`*"]
match_all(this: &Cache) -> ::js_sys::Promise179     pub fn match_all(this: &Cache) -> ::js_sys::Promise;
180     #[cfg(feature = "Request")]
181     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = matchAll)]
182     #[doc = "The `matchAll()` method."]
183     #[doc = ""]
184     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"]
185     #[doc = ""]
186     #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"]
match_all_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise187     pub fn match_all_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise;
188     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = matchAll)]
189     #[doc = "The `matchAll()` method."]
190     #[doc = ""]
191     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"]
192     #[doc = ""]
193     #[doc = "*This API requires the following crate features to be activated: `Cache`*"]
match_all_with_str(this: &Cache, request: &str) -> ::js_sys::Promise194     pub fn match_all_with_str(this: &Cache, request: &str) -> ::js_sys::Promise;
195     #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))]
196     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = matchAll)]
197     #[doc = "The `matchAll()` method."]
198     #[doc = ""]
199     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"]
200     #[doc = ""]
201     #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`, `Request`*"]
match_all_with_request_and_options( this: &Cache, request: &Request, options: &CacheQueryOptions, ) -> ::js_sys::Promise202     pub fn match_all_with_request_and_options(
203         this: &Cache,
204         request: &Request,
205         options: &CacheQueryOptions,
206     ) -> ::js_sys::Promise;
207     #[cfg(feature = "CacheQueryOptions")]
208     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = matchAll)]
209     #[doc = "The `matchAll()` method."]
210     #[doc = ""]
211     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"]
212     #[doc = ""]
213     #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`*"]
match_all_with_str_and_options( this: &Cache, request: &str, options: &CacheQueryOptions, ) -> ::js_sys::Promise214     pub fn match_all_with_str_and_options(
215         this: &Cache,
216         request: &str,
217         options: &CacheQueryOptions,
218     ) -> ::js_sys::Promise;
219     #[cfg(all(feature = "Request", feature = "Response",))]
220     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = put)]
221     #[doc = "The `put()` method."]
222     #[doc = ""]
223     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/put)"]
224     #[doc = ""]
225     #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`, `Response`*"]
put_with_request( this: &Cache, request: &Request, response: &Response, ) -> ::js_sys::Promise226     pub fn put_with_request(
227         this: &Cache,
228         request: &Request,
229         response: &Response,
230     ) -> ::js_sys::Promise;
231     #[cfg(feature = "Response")]
232     # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = put)]
233     #[doc = "The `put()` method."]
234     #[doc = ""]
235     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/put)"]
236     #[doc = ""]
237     #[doc = "*This API requires the following crate features to be activated: `Cache`, `Response`*"]
put_with_str(this: &Cache, request: &str, response: &Response) -> ::js_sys::Promise238     pub fn put_with_str(this: &Cache, request: &str, response: &Response) -> ::js_sys::Promise;
239 }
240