aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-08-06 10:19:09 +0200
committerLoïc Hoguin <[email protected]>2018-08-06 10:19:09 +0200
commit0ff0b2acfe9a113a4be9502fedfc4d74f4fc24f4 (patch)
tree5fa80c24668e2fe7a219b43dd008bbec6cad9b9b /src
parent7ee67df066af3d38fdb78aa396a6c3dd923ed107 (diff)
downloadcowlib-0ff0b2acfe9a113a4be9502fedfc4d74f4fc24f4.tar.gz
cowlib-0ff0b2acfe9a113a4be9502fedfc4d74f4fc24f4.tar.bz2
cowlib-0ff0b2acfe9a113a4be9502fedfc4d74f4fc24f4.zip
Export two cow_http types used by Gun
Diffstat (limited to 'src')
-rw-r--r--src/cow_http.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cow_http.erl b/src/cow_http.erl
index b59b124..0eccd16 100644
--- a/src/cow_http.erl
+++ b/src/cow_http.erl
@@ -28,7 +28,11 @@
-export([version/1]).
-type version() :: 'HTTP/1.0' | 'HTTP/1.1'.
+-export_type([version/0]).
+
-type status() :: 100..999.
+-export_type([status/0]).
+
-type headers() :: [{binary(), iodata()}].
-export_type([headers/0]).