3636-define (CONNECTION_HEADER , <<" connection" >>).
3737-define (TRANSFER_ENCODING_HEADER , <<" Transfer-Encoding" >>).
3838
39+ -elvis ([{elvis_style , max_function_arity , disable }]).
40+
3941% % TODO: use this
4042% % -type connection_token() :: keep_alive | close.
4143
@@ -58,7 +60,7 @@ start_link(Server, ListenSocket, Options, Callback) ->
5860 Options :: proplists :proplist (),
5961 Callback :: elli_handler :callback ().
6062accept (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
6264 {ok , Socket } ->
6365 t (accepted ),
6466 ? MODULE :keepalive_loop (Socket , Options , Callback );
@@ -729,7 +731,7 @@ parse_path({abs_path, FullPath}) ->
729731 Query = maps :get (query , URIMap , <<>>),
730732 Port = maps :get (port , URIMap , case Scheme of http -> 80 ; https -> 443 ; _ -> undefined end ),
731733 {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 }) ->
733735 setelement (2 , parse_path ({abs_path , Path }), {Scheme , Host , Port });
734736parse_path (_ ) ->
735737 {error , unsupported_uri }.
0 commit comments