-module(wsHer).
|
|
|
|
-include("eWSrv.hrl").
|
|
|
|
-export_type([
|
|
response/0
|
|
]).
|
|
|
|
-type response() ::
|
|
{httpCode() | ok, body()}|
|
|
{httpCode() | ok, headers(), body()}|
|
|
{httpCode() | ok, headers(), {file, file:name_all()}|
|
|
{file, file:name_all(), wsUtil:range()}}|
|
|
{chunk, headers()}|
|
|
{chunk, headers(), body()}.
|
|
|
|
-callback handle(Method :: method(), Path :: binary(), Req :: wsReq()) -> response().
|