worker_plus_sys/
cf.rs

1use wasm_bindgen::prelude::*;
2
3#[wasm_bindgen]
4extern "C" {
5    #[wasm_bindgen(extends=::js_sys::Object, js_name=IncomingRequestCfProperties)]
6    #[derive(Debug, Clone, PartialEq, Eq)]
7    pub type Cf;
8
9    #[wasm_bindgen(structural, method, getter, js_class=IncomingRequestCfProperties, js_name=colo)]
10    pub fn colo(this: &Cf) -> String;
11
12    #[wasm_bindgen(structural, method, getter, js_class=IncomingRequestCfProperties, js_name=asn)]
13    pub fn asn(this: &Cf) -> u32;
14
15    #[wasm_bindgen(structural, method, getter, js_class=IncomingRequestCfProperties, js_name=country)]
16    pub fn country(this: &Cf) -> Option<String>;
17
18    #[wasm_bindgen(structural, method, getter, js_class=IncomingRequestCfProperties, js_name=httpProtocol)]
19    pub fn http_protocol(this: &Cf) -> String;
20
21    #[wasm_bindgen(structural, method, getter, js_class=IncomingRequestCfProperties, js_name=requestPriority)]
22    pub fn request_priority(this: &Cf) -> Option<String>;
23
24    #[wasm_bindgen(structural, method, getter, js_class=IncomingRequestCfProperties, js_name=tlsClientAuth)]
25    pub fn tls_client_auth(this: &Cf) -> Option<TlsClientAuth>;
26
27    #[wasm_bindgen(structural, method, getter, js_class=IncomingRequestCfProperties, js_name=tlsCipher)]
28    pub fn tls_cipher(this: &Cf) -> String;
29
30    #[wasm_bindgen(structural, method, getter, js_class=IncomingRequestCfProperties, js_name=tlsVersion)]
31    pub fn tls_version(this: &Cf) -> String;
32
33    #[wasm_bindgen(structural, method, getter, js_class=IncomingRequestCfProperties, js_name=city)]
34    pub fn city(this: &Cf) -> Option<String>;
35
36    #[wasm_bindgen(structural, method, getter, js_class=IncomingRequestCfProperties, js_name=continent)]
37    pub fn continent(this: &Cf) -> Option<String>;
38
39    #[wasm_bindgen(structural, method, getter, js_class=IncomingRequestCfProperties, js_name=latitude)]
40    pub fn latitude(this: &Cf) -> Option<String>;
41
42    #[wasm_bindgen(structural, method, getter, js_class=IncomingRequestCfProperties, js_name=longitude)]
43    pub fn longitude(this: &Cf) -> Option<String>;
44
45    #[wasm_bindgen(structural, method, getter, js_class=IncomingRequestCfProperties, js_name=postalCode)]
46    pub fn postal_code(this: &Cf) -> Option<String>;
47
48    #[wasm_bindgen(structural, method, getter, js_class=IncomingRequestCfProperties, js_name=metroCode)]
49    pub fn metro_code(this: &Cf) -> Option<String>;
50
51    #[wasm_bindgen(structural, method, getter, js_class=IncomingRequestCfProperties, js_name=region)]
52    pub fn region(this: &Cf) -> Option<String>;
53
54    #[wasm_bindgen(structural, method, getter, js_class=IncomingRequestCfProperties, js_name=regionCode)]
55    pub fn region_code(this: &Cf) -> Option<String>;
56
57    #[wasm_bindgen(structural, method, getter, js_class=IncomingRequestCfProperties, js_name=timezone)]
58    pub fn timezone(this: &Cf) -> String;
59
60    #[wasm_bindgen(structural, method, getter, js_class=IncomingRequestCfProperties, js_name=isEUCountry)]
61    pub fn is_eu_country(this: &Cf) -> Option<String>;
62}
63
64#[wasm_bindgen]
65extern "C" {
66    #[wasm_bindgen(extends=::js_sys::Object, js_name=tlsClientAuth)]
67    #[derive(Debug, Clone, PartialEq, Eq)]
68    pub type TlsClientAuth;
69
70    #[wasm_bindgen(structural, method, getter, js_name=certIssuerDNLegacy, js_class = "tlsClientAuth")]
71    pub fn cert_issuer_dn_legacy(this: &TlsClientAuth) -> String;
72
73    #[wasm_bindgen(structural, method, getter, js_name=certIssuerDN, js_class = "tlsClientAuth")]
74    pub fn cert_issuer_dn(this: &TlsClientAuth) -> String;
75
76    #[wasm_bindgen(structural, method, getter, js_name=certIssuerDNRFC2253, js_class = "tlsClientAuth")]
77    pub fn cert_issuer_dn_rfc2253(this: &TlsClientAuth) -> String;
78
79    #[wasm_bindgen(structural, method, getter, js_name=certSubjectDNLegacy, js_class = "tlsClientAuth")]
80    pub fn cert_subject_dn_legacy(this: &TlsClientAuth) -> String;
81
82    #[wasm_bindgen(structural, method, getter, js_name=certVerified, js_class = "tlsClientAuth")]
83    pub fn cert_verified(this: &TlsClientAuth) -> String;
84
85    #[wasm_bindgen(structural, method, getter, js_name=certNotAfter, js_class = "tlsClientAuth")]
86    pub fn cert_not_after(this: &TlsClientAuth) -> String;
87
88    #[wasm_bindgen(structural, method, getter, js_name=certSubjectDN, js_class = "tlsClientAuth")]
89    pub fn cert_subject_dn(this: &TlsClientAuth) -> String;
90
91    #[wasm_bindgen(structural, method, getter, js_name=certFingerprintSHA1, js_class = "tlsClientAuth")]
92    pub fn cert_fingerprint_sha1(this: &TlsClientAuth) -> String;
93
94    #[wasm_bindgen(structural, method, getter, js_name=certNotBefore, js_class = "tlsClientAuth")]
95    pub fn cert_not_before(this: &TlsClientAuth) -> String;
96
97    #[wasm_bindgen(structural, method, getter, js_name=certSerial, js_class = "tlsClientAuth")]
98    pub fn cert_serial(this: &TlsClientAuth) -> String;
99
100    #[wasm_bindgen(structural, method, getter, js_name=certPresented, js_class = "tlsClientAuth")]
101    pub fn cert_presented(this: &TlsClientAuth) -> String;
102
103    #[wasm_bindgen(structural, method, getter, js_name=certSubjectDNRFC225, js_class = "tlsClientAuth")]
104    pub fn cert_subject_dn_rfc225(this: &TlsClientAuth) -> String;
105}