pub fn with_max_parallel_and_headers(
        url: &str,
        max_parallel: usize,
        headers: HeaderMap,
    ) -> Result<(EventLoopHandle, Self)> {
        let url = url.to_owned();
        EventLoopHandle::spawn(move |handle| {
            Self::with_event_loop_internal(EventLoopParams {
                url: &url,
                handle,
                max_parallel,
                headers: Some(headers),
            })
        })
    }
/// Create a HTTP transport with the given URL and spawn an event loop in a separate thread.
/// You can set a maximal number of parallel requests.
/// You can provide custom headers to be passed to the HTTP requests.
/// NOTE: Dropping event loop handle will stop the transport layer!
Create a HTTP transport with the given URL and spawn an event loop in a separate thread.
You can set a maximal number of parallel requests.
You can provide custom headers to be passed to the HTTP requests.
NOTE: Dropping event loop handle will stop the transport layer!
Create a HTTP transport with the given URL and spawn an event loop in a separate thread . You can set a maximal number of parallel requests . You can provide custom headers to be passed to the HTTP requests . NOTE : Dropping event loop handle will stop the transport layer!
pub fn with_max_parallel_and_headers(
        url: &str,
        max_parallel: usize,
        headers: HeaderMap,
    ) -> Result<(EventLoopHandle, Self)> {
        let url = url.to_owned();
        EventLoopHandle::spawn(move |handle| {
            Self::with_event_loop_internal(EventLoopParams {
                url: &url,
                handle,
                max_parallel,
                headers: Some(headers),
            })
        })
    }
pub fn with_max_parallel_and_headers ( url : & str , max_parallel : usize , headers : HeaderMap , ) -> Result < ( EventLoopHandle , Self ) > { let url = url . to_owned ( ) ; EventLoopHandle :: spawn ( move | handle | { Self :: with_event_loop_internal ( EventLoopParams { url : & url , handle , max_parallel , headers : Some ( headers ) , } ) } ) }
Create a HTTP transport with the given URL and spawn an event loop in a separate thread.
Create a HTTP transport with the given URL and spawn an event loop in a separate thread .
url
&str
max_parallel
usize
headers
HeaderMap