/// Construct a new `Request` with a `RequestInit` configuration.
Construct a new `Request` with a `RequestInit` configuration.
Construct a new ` Request ` with a ` RequestInit ` configuration .
pub fn new_with_init(uri: &str, init: &RequestInit) -> Result<Self> {
        EdgeRequest::new_with_str_and_init(uri, &init.into())
            .map(|req| {
                let mut req: Request = req.into();
                req.immutable = false;
                req
            })
            .map_err(|e| {
                Error::JsError(
                    e.as_string()
                        .unwrap_or_else(|| "invalid URL or options for Request".to_string()),
                )
            })
    }
pub fn new_with_init ( uri : & str , init : & RequestInit ) -> Result < Self > { EdgeRequest :: new_with_str_and_init ( uri , & init . into ( ) ) . map ( | req | { let mut req : Request = req . into ( ) ; req . immutable = false ; req } ) . map_err ( | e | { Error :: JsError ( e . as_string ( ) . unwrap_or_else ( | | " " . to_string ( ) ) , ) } ) }
Construct a new `Request` with a `RequestInit` configuration.
Construct a new ` Request ` with a ` RequestInit ` configuration .
uri
&str
init
&RequestInit