req
req copied to clipboard
Req is a batteries-included HTTP client for Elixir.
It's inefficient to read and parse the file on every single request. ~Let's cache it based on mtime.~
Remember to send a PR with some docs to Finch itself too.
Requires #10. When running in IEx, by default we'll simply write to stdout: ``` iex> Enum.each(1..99, fn i -> IO.write "\r" String.pad_leading("#{i}%", 4, " ") ; Process.sleep(50) end) 1%.. 2%.....
We start Finch pool with default options and end up with an HTTP/1 pool. It would be nice to have protocol negotiation which afaik Finch doesn't support.
Hi, Thanks for a great package! I have simplified a couple of projects a lot with it! 🎉 This PR adds multipart/form-data encoding for very simple forms. (I ran into...
Hi there! First off, thanks for your work on req. I've been using it as my primary request library and really enjoying it, but wanted to offer a proposal that...
I'm writing an elixir library to communicate with an API and I've chosen this library for doing requests because I like the API. Everything works as expected but I was...
Given this script: ```elixir Mix.install([ {:req, "0.3.1"} ]) require Logger Req.new(url: "https://httpbin.org/status/408", params: [test: "a"]) |> Req.Request.append_request_steps( log_request: fn request -> Logger.debug("#{request.method} #{URI.to_string(request.url)}") request end ) |> Req.get!() ``` …...