36
36
-define (CONNECTION_HEADER , <<" connection" >>).
37
37
-define (TRANSFER_ENCODING_HEADER , <<" Transfer-Encoding" >>).
38
38
39
+ -elvis ([{elvis_style , max_function_arity , disable }]).
40
+
39
41
% % TODO: use this
40
42
% % -type connection_token() :: keep_alive | close.
41
43
@@ -58,7 +60,7 @@ start_link(Server, ListenSocket, Options, Callback) ->
58
60
Options :: proplists :proplist (),
59
61
Callback :: elli_handler :callback ().
60
62
accept (Server , ListenSocket , Options , Callback ) ->
61
- case catch elli_tcp :accept (ListenSocket , Server , accept_timeout (Options )) of
63
+ case elli_tcp :accept (ListenSocket , Server , accept_timeout (Options )) of
62
64
{ok , Socket } ->
63
65
t (accepted ),
64
66
? MODULE :keepalive_loop (Socket , Options , Callback );
@@ -729,7 +731,7 @@ parse_path({abs_path, FullPath}) ->
729
731
Query = maps :get (query , URIMap , <<>>),
730
732
Port = maps :get (port , URIMap , case Scheme of http -> 80 ; https -> 443 ; _ -> undefined end ),
731
733
{ok , {Scheme , Host , Port }, {Path , split_path (Path ), uri_string :dissect_query (Query )}};
732
- parse_path ({absoluteURI , Scheme , Host , Port , Path }) ->
734
+ parse_path ({' absoluteURI' , Scheme , Host , Port , Path }) ->
733
735
setelement (2 , parse_path ({abs_path , Path }), {Scheme , Host , Port });
734
736
parse_path (_ ) ->
735
737
{error , unsupported_uri }.
0 commit comments