|
@@ -13,7 +13,6 @@
|
|
%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
|
|
--type http_version() :: {Major::non_neg_integer(), Minor::non_neg_integer()}.
|
|
|
|
-type http_header() :: 'Cache-Control' | 'Connection' | 'Date' | 'Pragma'
|
|
-type http_header() :: 'Cache-Control' | 'Connection' | 'Date' | 'Pragma'
|
|
| 'Transfer-Encoding' | 'Upgrade' | 'Via' | 'Accept' | 'Accept-Charset'
|
|
| 'Transfer-Encoding' | 'Upgrade' | 'Via' | 'Accept' | 'Accept-Charset'
|
|
| 'Accept-Encoding' | 'Accept-Language' | 'Authorization' | 'From' | 'Host'
|
|
| 'Accept-Encoding' | 'Accept-Language' | 'Authorization' | 'From' | 'Host'
|
|
@@ -42,7 +41,7 @@
|
|
%% Request.
|
|
%% Request.
|
|
pid = undefined :: pid(),
|
|
pid = undefined :: pid(),
|
|
method = 'GET' :: cowboy_http:method(),
|
|
method = 'GET' :: cowboy_http:method(),
|
|
- version = {1, 1} :: http_version(),
|
|
|
|
|
|
+ version = {1, 1} :: cowboy_http:version(),
|
|
peer = undefined :: undefined | {inet:ip_address(), inet:ip_port()},
|
|
peer = undefined :: undefined | {inet:ip_address(), inet:ip_port()},
|
|
host = undefined :: undefined | cowboy_dispatcher:tokens(),
|
|
host = undefined :: undefined | cowboy_dispatcher:tokens(),
|
|
host_info = undefined :: undefined | cowboy_dispatcher:tokens(),
|
|
host_info = undefined :: undefined | cowboy_dispatcher:tokens(),
|