File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 26
26
-include (" hackney_lib.hrl" ).
27
27
28
28
-type qs_vals () :: [{binary (), binary () | true }].
29
+ -type qs_opt () :: noplus | upper .
29
30
30
31
% % @doc Parse an url and return a #hackney_url record.
31
32
-spec parse_url (URL :: binary ()|list ()) -> hackney_url ().
@@ -288,7 +289,7 @@ urlencode(Bin) ->
288
289
% % characters, `\s', as `+'. The `upper' option overrides the default behaviour
289
290
% % of writing hex numbers using lowecase letters to using uppercase letters
290
291
% % instead.
291
- -spec urlencode (binary () | string (), [noplus | upper ]) -> binary ().
292
+ -spec urlencode (binary () | string (), [qs_opt () ]) -> binary ().
292
293
urlencode (Bin , Opts ) ->
293
294
Plus = not proplists :get_value (noplus , Opts , false ),
294
295
Upper = proplists :get_value (upper , Opts , false ),
@@ -344,7 +345,7 @@ qs(KVs) ->
344
345
345
346
% % @doc encode query properties to binary
346
347
% % Opts are passed to urlencode.
347
- -spec qs (qs_vals (), [atom ]) -> binary ().
348
+ -spec qs (qs_vals (), [qs_opt () ]) -> binary ().
348
349
qs (KVs , Opts ) ->
349
350
qs (KVs , Opts , []).
350
351
You can’t perform that action at this time.
0 commit comments