Skip to content

Commit

Permalink
Improve Plugin docs
Browse files Browse the repository at this point in the history
  • Loading branch information
derekkraan committed Jun 16, 2024
1 parent 7ba8e9f commit d92bc9a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/curl_req/plugin.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ defmodule CurlReq.Plugin do
request
end

@type option :: {:log_level, Logger.level()} | {:log_metadata, any()}

@doc "Attaches the plugin, main entry point for this module."
@spec attach(Req.Request.t(), [option()]) :: Req.Request.t()
def attach(%Req.Request{} = request, options \\ []) do
request
|> Req.Request.register_options([:log_level, :log_metadata])
Expand Down

0 comments on commit d92bc9a

Please sign in to comment.