You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

17 lines
408 B

-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().