We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8ac20f9 + c1423cc commit dfc4ea5Copy full SHA for dfc4ea5
1 file changed
lib/tesla.ex
@@ -89,20 +89,19 @@ defmodule Tesla.Middleware do
89
90
### Examples
91
92
- defmodule MyProject.InspectHeadersMiddleware do
93
- @behaviour Tesla.Middleware
+ defmodule MyProject.InspectHeadersMiddleware do
+ @behaviour Tesla.Middleware
94
95
- @impl true
96
- def call(env, next, _options) do
97
- IO.inspect(env.headers)
98
-
99
- with {:ok, env} <- Tesla.run(env, next) do
+ @impl true
+ def call(env, next, _options) do
100
IO.inspect(env.headers)
101
- {:ok, env}
+
+ with {:ok, env} <- Tesla.run(env, next) do
+ IO.inspect(env.headers)
+ {:ok, env}
102
+ end
103
end
104
- end
105
106
"""
107
108
@doc """
0 commit comments