Skip to content

p424p424/httpp

 
 

Repository files navigation

httpp

Package Version Hex Docs

gleam add httpp
import httpp/async
import gleam/http/request
import gleam/uri
import gleam/bytes_builder
import gleam/erlang/process

pub fn main() {
  let response_subject = uri.parse("https://example.com")
  |> request.from_uri
  |> request.map(bytes_builder.from_string)
  |> async.send

  // asynchronously send an http request and receive it later
  process.receive(response_subject, 2000)
}

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

Development

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

About

A gleam http client with support for server-sent events and long-running requests, based on hackney

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Gleam 86.3%
  • TypeScript 10.8%
  • Erlang 2.9%