Skip to content

Commit

Permalink
req-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
inoas-nbw committed Jan 13, 2025
1 parent a4aa39c commit 73cfd8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/ex_aws/request/req.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ defmodule ExAws.Request.Req do
@moduledoc """
Configuration for `m:Req`.
The minimum recommended `req` version is `0.4.0`.
Options can be set for `m:Req` with the following config:
config :ex_aws, :req_opts,
Expand Down Expand Up @@ -31,7 +33,7 @@ defmodule ExAws.Request.Req do
end
end

# Req uses :follow_redirects, but some clients pass the :hackney option
# Req >= 0.4.0 uses :redirect, but some clients pass the :hackney option
# :follow_redirect. Rename the option for Req to use.
defp rename_follow_redirect(opts) do
{follow, opts} = Keyword.pop(opts, :follow_redirect, false)
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ defmodule ExAws.Mixfile do
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.16", only: [:dev, :test]},
{:hackney, "~> 1.16", optional: true},
{:req, "~> 0.3", optional: true},
{:req, "~> 0.4", optional: true},
{:jason, "~> 1.1", optional: true},
{:jsx, "~> 2.8 or ~> 3.0", optional: true},
{:mox, "~> 1.0", only: :test},
Expand Down

0 comments on commit 73cfd8c

Please sign in to comment.