CURL kanggo Rust online
Alat iki mbantu sampeyan ngasilake kode Rust adhedhasar printah CURL. Salin lan tempel printah CURL lan ngasilake Rust.
Apa sampeyan bisa nindakake karo konverter CURL menyang Rust online?
- CURL to Rust minangka alat sing unik kanggo ngowahi perintah CURL menyang Rust request Rust. Input diwenehake dening printah CURL pangguna kanggo ngasilake kode Rust.
- Alat iki ngirit wektu lan mbantu nggawe kode Rust kanthi gampang.
- CURL to Rust bisa digunakake kanthi apik ing Windows, MAC, Linux, Chrome, Firefox, Edge lan Safari.
apa iku CURL?
CURL minangka alat baris perintah open-source sing ndownload file saka web. Ndhukung macem-macem protokol, kalebu Rust, RustS, FTP, SFTP, TFTP, Gopher lan liya-liyane.
Kepiye cara ngowahi CURL dadi kode Rust?
Step1: Tempel lan ngowahi panjalukan CURL menyang kode Rust
Langkah 2: Salin kode Rust
Convert CURL kanggo conto Rust
KULIT
curl example.com
PHP Ngakak
extern crate reqwest;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = reqwest::blocking::Client::builder()
.redirect(reqwest::redirect::Policy::none())
.build()
.unwrap();
let res = client.get("http://example.com")
.send()?
.text()?;
println!("{}", res);
Ok(())
}