include/whitecap.hrl
%% macros
-define(APP, whitecap).
-define(CHILD(Name, Opts, Mod), {Name, {Mod, start_link, [Name, Opts]}, permanent, 5000, worker, [Mod]}).
%% records
-record(whitecap_req, {
state :: body | done,
verb :: verb(),
path :: binary(),
headers :: [binary()],
content_length :: undefined | non_neg_integer(),
body :: undefined | binary()
}).
-type verb() :: get | head | post | put.
-type whitecap_req() :: #whitecap_req {}.