I'm not sure if you only need a slow connection or if there's something particular about my network, but I get the error when I dorustup toolchain install. My toolchain file has [toolchain]channel="1.85"profile=
returnnil, fmt.Errorf("error making request to Geo API: %w", err) } defer resp.Body.Close() varresponse GeoResponse iferr := json.NewDecoder(resp.Body).Decode(&response); err != nil { returnnil, fmt.Errorf("error decoding response: %w", err) } iflen(response.Results) < 1 { ...
I'm on a Windows 10 laptop behind a corporate firewall (Zscaler). I didset RUSTUP_HTTPS_REDIRECT=httpinitially and go the sameerror decoding response body. Then I alsoset RUSTUP_USE_RUSTLS=1and then ran.\rustup-init.exeand got success. Seems you need both those env vars set. 👍1 ...
=nil{returnnil,fmt.Errorf("error making request to Geo API: %w",err)}deferresp.Body.Close()varresponse GeoResponseiferr:=json.NewDecoder(resp.Body).Decode(&response);err!=nil{returnnil,fmt.Errorf("error decoding response: %w",err)}iflen(response.Results)<1{returnnil,errors.New("no ...
seanmonstar/reqwest - an ergonomic HTTP Client. HTTP Server actix/actix-web - A lightweight async web framework with websocket support Anansi - A simple full-stack web framework branca - Implementation of Branca for Authenticated and Encrypted API tokens. c410-f3r/wtx - Low and high level HT...
reqwest::;use crate::{ models:{APIResponse APIResponseCloudinary video_service::VideoService,}; #[post("/upload)] pub async fnuploadvideo(multipartMultipart) -> ResultHttpResponse, Error> { let file_path = VideoService::save_file(multipart).await?; let upload_details = Video...
usereqwest::Client;usescraper::{Html,Selector};// Create a new clientletclient=Client::new();// Send a GET request to the websiteletmutres=client.get("http://books.toscrape.com/").send().unwrap();// Extract the HTML from the responseletbody=res.text().unwrap();// Parse the HT...
A curated list of Rust code and resources. If you want to contribute, please readthis.
In low-margin and high-volume retailing, every penny counts, especially when a portion of profits goes to charitable causes. That’s the case for Salling Group, Denmark’s largest retailer and owner of popular discount supermarket chains Netto, Bilka, and Føtex. With more than 60,000 employ...
seanmonstar/reqwest - an ergonomic HTTP Client. HTTP Server actix/actix-web - A lightweight async web framework with websocket support Anansi - A simple full-stack web framework branca - Implementation of Branca for Authenticated and Encrypted API tokens. c410-f3r/wtx - Low and high level HT...