Procházet zdrojové kódy

ft: 代码修改

master
SisMaker před 3 roky
rodič
revize
2e4ce44ddc
2 změnil soubory, kde provedl 15 přidání a 17 odebrání
  1. +15
    -0
      include/eWSrv.hrl
  2. +0
    -17
      src/wsSrv/elli.erl

+ 15
- 0
include/eWSrv.hrl Zobrazit soubor

@ -35,7 +35,22 @@
callback :: wsHer:callback()
}).
-export_type([req/0, http_method/0, body/0, headers/0, response_code/0]).
%% @type req(). A record representing an HTTP request.
-type req() :: #req{}.
%% @type http_method(). An uppercase atom representing a known HTTP verb or a
%% binary for other verbs.
-type http_method() :: 'OPTIONS' | 'GET' | 'HEAD' | 'POST'| 'PUT' | 'DELETE' | 'TRACE' | binary().
%% @type body(). A binary or iolist.
-type body() :: binary() | iolist().
-type header() :: {Key :: binary(), Value :: binary() | string()}.
-type headers() :: [header()].
-type response_code() :: 100..999.
-define(EXAMPLE_CONF, [{callback, elli_example_callback}, {callback_args, []}]).

+ 0
- 17
src/wsSrv/elli.erl Zobrazit soubor

@ -23,23 +23,6 @@
, code_change/3
]).
-export_type([req/0, http_method/0, body/0, headers/0, response_code/0]).
%% @type req(). A record representing an HTTP request.
-type req() :: #req{}.
%% @type http_method(). An uppercase atom representing a known HTTP verb or a
%% binary for other verbs.
-type http_method() :: 'OPTIONS' | 'GET' | 'HEAD' | 'POST'| 'PUT' | 'DELETE' | 'TRACE' | binary().
%% @type body(). A binary or iolist.
-type body() :: binary() | iolist().
-type header() :: {Key :: binary(), Value :: binary() | string()}.
-type headers() :: [header()].
-type response_code() :: 100..999.
-record(state, {socket :: wsNet:socket(),
acceptors :: ets:tid(),
open_reqs = 0 :: non_neg_integer(),

Načítá se…
Zrušit
Uložit