nyquest_backend_nsurlsession/
lib.rs1#![doc = include_str!("../README.md")]
6#![cfg_attr(docsrs, feature(doc_cfg))]
7
8cfg_if::cfg_if! {
9 if #[cfg(all(target_vendor = "apple", any(feature = "async", feature = "blocking")))] {
10 #[cfg(feature = "async")]
11 #[cfg_attr(docsrs, doc(cfg(feature = "async")))]
12 mod r#async;
13 #[cfg(feature = "blocking")]
14 #[cfg_attr(docsrs, doc(cfg(feature = "blocking")))]
15 mod blocking;
16
17 mod challenge;
18 mod client;
19 mod datatask;
20 mod error;
21 #[cfg(feature = "multipart")]
22 #[cfg_attr(docsrs, doc(cfg(feature = "multipart")))]
23 mod multipart;
24 mod response;
25 mod retained_ext;
26 mod stream;
27 }
28}
29
30#[derive(Clone)]
32pub struct NSUrlSessionBackend;
33
34#[cfg(target_vendor = "apple")]
35pub fn register() {
37 nyquest_interface::register_backend(NSUrlSessionBackend);
38}