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