@@ -51,7 +51,6 @@
-export_type([method/0, uri/0, version/0, header/0, headers/0, status/0]).
--include("include/http.hrl").
-include_lib("eunit/include/eunit.hrl").
%% Parsing.
@@ -38,7 +38,7 @@
-export([start_link/4]). %% API.
-export([init/4, parse_request/1, handler_loop/3]). %% FSM.
+-include("http.hrl").
-record(state, {
@@ -50,7 +50,7 @@
compact/1, transport/1
]). %% Misc API.
%% Request API.
@@ -46,7 +46,7 @@
expires :: undefined | no_call | calendar:datetime()
}).
%% @doc Upgrade a HTTP request to the REST protocol.
%%
@@ -40,7 +40,7 @@
-export([upgrade/4]). %% API.
-export([handler_loop/4]). %% Internal.
-type opcode() :: 0 | 1 | 2 | 8 | 9 | 10.