I'm trying out the gleam programming language and I was hoping to do some simple things to get a feel for the language. One thing I wanted to try out was making HTTP request and I've gotten as far as:
import gleam/io
import gleam/http/request
import gleam/uri.{parse}
pub fn main() {
try uri = parse("https://lichess.org/api/puzzle/daily")
let req = request.from_uri(uri)
io.debug(req)
}
Which if I run outputs
{ok,{request,get,[],<<>>,https,<<"lichess.org">>,none,<<"/api/puzzle/daily">>,
none}}
This makes me think that the Request object is correctly being constructed, but I'm not seeing any requests being made. How do I fire off this request?