1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
#[wasm_bindgen(extends=js_sys::Object)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub type R2HttpMetadata;
#[wasm_bindgen(method, getter, js_name=contentType)]
pub fn content_type(this: &R2HttpMetadata) -> Option<String>;
#[wasm_bindgen(method, getter, js_name=contentLanguage)]
pub fn content_language(this: &R2HttpMetadata) -> Option<String>;
#[wasm_bindgen(method, getter, js_name=contentDisposition)]
pub fn content_disposition(this: &R2HttpMetadata) -> Option<String>;
#[wasm_bindgen(method, getter, js_name=contentEncoding)]
pub fn content_encoding(this: &R2HttpMetadata) -> Option<String>;
#[wasm_bindgen(method, getter, js_name=cacheControl)]
pub fn cache_control(this: &R2HttpMetadata) -> Option<String>;
#[wasm_bindgen(method, getter, js_name=cacheExpiry)]
pub fn cache_expiry(this: &R2HttpMetadata) -> Option<js_sys::Date>;
}