Compare commits

...

8 Commits

Author SHA1 Message Date
180ebfb299 Merge pull request 'fix bad typespec of headers in http.hrl' (#3) from prh-headers-fix into master
Reviewed-on: QPQ-AG/QHL#3
Reviewed-by: Craig Everett <craigeverett@qpq.swiss>
2026-01-09 13:30:36 +09:00
Peter Harpending
b0b5882936 fix bad typespec of headers in http.hrl 2025-10-21 17:27:38 -07:00
cee4d0bf56 Merge pull request 'smallfix' (#2) from smallfix into master
Reviewed-on: QPQ-AG/QHL#2
2025-10-12 14:58:57 +09:00
23261552e1 Merge branch 'master' into smallfix 2025-10-11 15:49:07 +09:00
141e637630 Merge pull request 'fix bad typespec in qhl:parse' (#1) from pharpend/QHL:master into master
Reviewed-on: QPQ-AG/QHL#1
Reviewed-by: Craig Everett <craigeverett@qpq.swiss>
2025-10-11 15:48:39 +09:00
faf14bac3f Fix zj type 2025-10-11 15:47:04 +09:00
0def0846bf Add map type to body (zj return) 2025-10-11 15:45:05 +09:00
f2e41fcfec Add ZJ dep, and fix enctype spec 2025-10-11 15:43:10 +09:00
4 changed files with 8 additions and 8 deletions

View File

@ -3,5 +3,5 @@
{registered,[]}, {registered,[]},
{included_applications,[]}, {included_applications,[]},
{applications,[stdlib,kernel]}, {applications,[stdlib,kernel]},
{vsn,"0.2.0"}, {vsn,"0.2.1"},
{modules,[qhl]}]}. {modules,[qhl]}]}.

View File

@ -4,9 +4,9 @@
qargs = undefined :: undefined | #{Key :: binary() := Value :: binary()}, qargs = undefined :: undefined | #{Key :: binary() := Value :: binary()},
fragment = undefined :: undefined | none | binary(), fragment = undefined :: undefined | none | binary(),
version = undefined :: undefined | http10 | http11 | http20, version = undefined :: undefined | http10 | http11 | http20,
headers = undefined :: undefined | [{Key :: binary(), Value :: binary()}], headers = undefined :: undefined | #{Key :: binary() := Value :: binary()},
cookies = undefined :: undefined | #{Key :: binary() := Value :: binary()}, cookies = undefined :: undefined | #{Key :: binary() := Value :: binary()},
enctype = undefined :: undefined | none | urlencoded | multipart(), enctype = undefined :: undefined | none | urlencoded | json | multipart(),
size = undefined :: undefined | none | non_neg_integer(), size = undefined :: undefined | none | non_neg_integer(),
body = undefined :: undefined | none | body()}). body = undefined :: undefined | none | body()}).
@ -20,6 +20,6 @@
-type method() :: get | post | options. -type method() :: get | post | options.
-type multipart() :: {multipart, Boundary :: binary()}. -type multipart() :: {multipart, Boundary :: binary()}.
-type body() :: {partial, binary()} | {multipart, [body_part()]} | binary(). -type body() :: {partial, binary()} | {multipart, [body_part()]} | binary() | zj:value().
-type body_part() :: {Field :: binary(), Data :: binary()} -type body_part() :: {Field :: binary(), Data :: binary()}
| {Field :: binary(), Name :: binary(), Data :: binary()}. | {Field :: binary(), Name :: binary(), Data :: binary()}.

View File

@ -8,7 +8,7 @@
%%% @end %%% @end
-module(qhl). -module(qhl).
-vsn("0.2.0"). -vsn("0.2.1").
-author("Craig Everett <ceverett@tsuriai.jp>"). -author("Craig Everett <ceverett@tsuriai.jp>").
-copyright("Craig Everett <ceverett@tsuriai.jp>"). -copyright("Craig Everett <ceverett@tsuriai.jp>").
-license("MIT"). -license("MIT").

View File

@ -2,10 +2,10 @@
{type,lib}. {type,lib}.
{modules,[]}. {modules,[]}.
{prefix,none}. {prefix,none}.
{author,"Craig Everett"}.
{desc,"The Quick HTTP Library"}. {desc,"The Quick HTTP Library"}.
{package_id,{"otpr","qhl",{0,2,0}}}. {author,"Craig Everett"}.
{deps,[]}. {package_id,{"otpr","qhl",{0,2,1}}}.
{deps,[{"otpr","zj",{1,1,2}}]}.
{key_name,none}. {key_name,none}.
{a_email,"zxq9@zxq9.com"}. {a_email,"zxq9@zxq9.com"}.
{c_email,"zxq9@zxq9.com"}. {c_email,"zxq9@zxq9.com"}.