Skip to content

Commit

Permalink
Merge pull request erlang#7913 from ts-klassen/httpc/fix-spec
Browse files Browse the repository at this point in the history
Fix BodyFormat of spec
  • Loading branch information
IngelaAndin authored Dec 5, 2023
2 parents cf4f6e1 + a0aba21 commit 7118194
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/inets/src/http_client/httpc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ request(Url, Profile) ->
| {ipv6_host_with_brackets, boolean()},
StreamTo :: none | self | {self, once} | file:name_all(),
SocketOpt :: term(),
BodyFormat :: string() | binary() | atom(),
BodyFormat :: string | binary,
Receiver :: pid()
| fun((term()) -> term())
| { ReceiverModule::atom()
Expand Down Expand Up @@ -220,7 +220,7 @@ request(Method, Request, HttpOptions, Options) ->
| {receiver, Receiver}
| {ipv6_host_with_brackets, boolean()},
StreamTo :: none | self | {self, once} | file:name_all(),
BodyFormat :: string() | binary() | atom(),
BodyFormat :: string | binary,
SocketOpt :: term(),
Receiver :: pid()
| fun((term()) -> term())
Expand Down Expand Up @@ -903,7 +903,7 @@ maybe_format_body(BinBody, Options) ->
| {socket_opts, [SocketOpt]}
| {receiver, Receiver}
| {ipv6_host_with_brackets, boolean()},
BodyFormat :: string() | binary() | atom(),
BodyFormat :: string | binary,
StreamTo :: none | self | {self, once} | file:name_all(),
SocketOpt :: term(),
Receiver :: pid()
Expand Down Expand Up @@ -1150,7 +1150,7 @@ request_options([{Key, DefaultVal, Verify} | Defaults], Options, Acc) ->
| {receiver, Receiver}
| {ipv6_host_with_brackets, boolean()},
StreamTo :: none | self | {self, once} | file:name_all(),
BodyFormat :: string() | binary() | atom(),
BodyFormat :: string | binary,
SocketOpt :: term(),
Receiver :: pid()
| fun((term()) -> term())
Expand Down

0 comments on commit 7118194

Please sign in to comment.