From 28186a68d0c023987fe7334b0326fb6c87f9447c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 16 May 2013 12:56:01 +0200 Subject: Make the HTTP version type more practical Now instead of {1, 1} we have 'HTTP/1.1', and instead of {1, 0} we have 'HTTP/1.0'. This is more efficient, easier to read in crash logs, and clearer in the code. --- guide/req.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guide/req.md') diff --git a/guide/req.md b/guide/req.md index a92ed82..96f72b9 100644 --- a/guide/req.md +++ b/guide/req.md @@ -31,7 +31,7 @@ request object. The following access functions are defined in `cowboy_req`: * `method/1`: the request method (`<<"GET">>`, `<<"POST">>`...) - * `version/1`: the HTTP version (`{1,0}` or `{1,1}`) + * `version/1`: the HTTP version (`'HTTP/1.0'` or `'HTTP/1.1'`) * `peer/1`: the peer address and port number * `host/1`: the hostname requested * `host_info/1`: the result of the `[...]` match on the host -- cgit v1.2.3