Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed May 24, 2024
1 parent d5d318f commit 5920130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/req.ex
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ defmodule Req do
iex> Req.get!(req, url: "/repos/wojtekmach/req").body["description"]
"Req is a batteries-included HTTP client for Elixir."
Return the request that was sent:
Return the request that was sent using `Req.run!/2`:
iex> {req, resp} = Req.run!("https://httpbin.org/basic-auth/foo/bar", auth: {:basic, "foo:bar"})
iex> req.headers["authorization"]
Expand Down Expand Up @@ -70,7 +70,7 @@ defmodule Req do
iex> resp.body
%IO.Stream{}
Stream response body to the current process:
Stream response body to the current process and parse incoming messages using `Req.parse_message/2`.
iex> resp = Req.get!("http://httpbin.org/stream/2", into: :self)
iex> Req.parse_message(resp, receive do message -> message end)
Expand Down

0 comments on commit 5920130

Please sign in to comment.