Skip to content
/ efetch Public

A Gleam http client for Erlang and JavaScript targets.

License

Notifications You must be signed in to change notification settings

lv37/efetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

efetch

Package Version Hex Docs

gleam add efetch
import gleam/http/request
import gleam/http
import gleam/result
import efetch

pub fn main() {
  let assert Ok(req) = request.to("https://github.com")
  use res <- efetch.send(req)
  res
  |> result.map(fn(res) { io.debug(res.status) })
  |> result.map_error(io.debug)
}

Further documentation can be found at https://hexdocs.pm/efetch.

Development

gleam run   # Run the project
gleam test  # Run the tests
gleam shell # Run an Erlang shell

About

A Gleam http client for Erlang and JavaScript targets.

Resources

License

Stars

Watchers

Forks

Packages

No packages published