diff options
author | Loïc Hoguin <[email protected]> | 2013-05-16 12:56:01 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-05-16 12:56:01 +0200 |
commit | 28186a68d0c023987fe7334b0326fb6c87f9447c (patch) | |
tree | 732b0da9873c061cdda690973150e7ccbce3b99b /guide/req.md | |
parent | e0b5526f1e6c0794fc76c77f0fc6a4a95696d23f (diff) | |
download | cowboy-28186a68d0c023987fe7334b0326fb6c87f9447c.tar.gz cowboy-28186a68d0c023987fe7334b0326fb6c87f9447c.tar.bz2 cowboy-28186a68d0c023987fe7334b0326fb6c87f9447c.zip |
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.
Diffstat (limited to 'guide/req.md')
-rw-r--r-- | guide/req.md | 2 |
1 files changed, 1 insertions, 1 deletions
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 |