fn load(
    &mut self,
    url: &str,
  ) -> Box<deno::SourceCodeInfoFuture<Self::Error>> {
    self
      .state
      .metrics
      .resolve_count
      .fetch_add(1, Ordering::SeqCst);
    Box::new(
      fetch_module_meta_data_and_maybe_compile_async(&self.state, url, ".")
        .map_err(|err| {
          eprintln!("{}", err);
          err
        }).map(|module_meta_data| deno::SourceCodeInfo {
          // Real module name, might be different from initial URL
          // due to redirections.
          code: module_meta_data.js_source(),
          module_name: module_meta_data.module_name,
        }),
    )
  }
/// Given an absolute url, load its source code.
Given an absolute url, load its source code.
Given an absolute url load its source code .
fn load(
    &mut self,
    url: &str,
  ) -> Box<deno::SourceCodeInfoFuture<Self::Error>> {
    self
      .state
      .metrics
      .resolve_count
      .fetch_add(1, Ordering::SeqCst);
    Box::new(
      fetch_module_meta_data_and_maybe_compile_async(&self.state, url, ".")
        .map_err(|err| {
          eprintln!("{}", err);
          err
        }).map(|module_meta_data| deno::SourceCodeInfo {
          // Real module name, might be different from initial URL
          // due to redirections.
          code: module_meta_data.js_source(),
          module_name: module_meta_data.module_name,
        }),
    )
  }
fn load ( & mut self , url : & str , ) -> Box < deno :: SourceCodeInfoFuture < Self :: Error > > { self . state . metrics . resolve_count . fetch_add ( 1 , Ordering :: SeqCst ) ; Box :: new ( fetch_module_meta_data_and_maybe_compile_async ( & self . state , url , " " ) . map_err ( | err | { eprintln ! ( " " err ) ; err } ) . map ( | module_meta_data | deno :: SourceCodeInfo { // Real module name, might be different from initial URL // due to redirections. code : module_meta_data . js_source ( ) , module_name : module_meta_data . module_name , } ) , ) }
Given an absolute url, load its source code.
Given an absolute url load its source code .
&mut self
url
&str