Why Nostr? What is Njump?
2024-07-03 00:52:13

npub1y3…tmj3w on Nostr: commit 01e886b8bd8473978716e25483f049c413908abc Author: @RandyMcMillan ...

commit 01e886b8bd8473978716e25483f049c413908abc
Author: @RandyMcMillan <[email protected]>
Date: Wed Feb 21 19:42:10 2024 -0500

src/bin/gnostr-reqwest.rs:example

diff --git a/src/bin/gnostr-reqwest.rs b/src/bin/gnostr-reqwest.rs
new file mode 100644
index 000000000..91cfd2cd0
--- /dev/null
+++ b/src/bin/gnostr-reqwest.rs
@@ -0,0 +1,11 @@
+use std::io::{Read};
+use reqwest::Url;
+fn main() {
+ let url = Url::parse("https://www.rust-lang.org/";).unwrap();
+ let mut res = reqwest::blocking::get(url).unwrap();
+
+ let mut body = String::new();
+ res.read_to_string(&mut body).unwrap();
+
+ println!("{}", body);
+}
Author Public Key
npub1y3p4crjjy7mndw2xw2gr05n8f2djds7fdtav8w4f0fcqkv6tuszqftmj3w