Skip to main content

web_sys/features/
gen_Cache.rs

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