nushell/crates/nu-command/src/network/mod.rs
JT 36079f1a3d
Port fetch (with fixes) (#660)
* Port fetch to engine-q

* Fix check for path as a string

* Add a timeout flag and fix some span issues

* Add a temporary fetch command that returns byte streams. Got rid of async stuff as we're using the blocking feature of tokio

* More tweaks for the bytestream

* Rewrite fetch using ByteStreams

* buffer read on bytes directly

Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2022-01-04 13:01:18 +11:00

8 lines
131 B
Rust

#[cfg(feature = "fetch")]
mod fetch;
mod url;
pub use self::url::*;
#[cfg(feature = "fetch")]
pub use fetch::SubCommand as Fetch;