This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use reqwest::header; | |
use reqwest::ClientBuilder; | |
#[tokio::main] | |
async fn main() -> Result<(), Box<dyn std::error::Error>> { | |
println!("\n[ - - - - - - - - -"); | |
let mut headers = header::HeaderMap::new(); | |
headers.insert("X-MY-HEADER", header::HeaderValue::from_static("asdfgh")); | |
headers.insert("COOKIE", header::HeaderValue::from_static("__test=123456")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use reqwest::header; | |
use reqwest::header::{HeaderMap}; | |
#[tokio::main] | |
async fn main() -> Result<(), Box<dyn std::error::Error>> { | |
println!("\n[ - - - - - - - - -"); | |
// | |
let mut headers = header::HeaderMap::new(); | |
headers.insert("X-MY-HEADER", header::HeaderValue::from_static("qwerty")); | |
headers.insert("COOKIE", header::HeaderValue::from_static("__test=5f07fc74273ecfcb7706d17a86a11a4e")); |