Version 1
[yaffs-website] / node_modules / parse-headers / example.js
diff --git a/node_modules/parse-headers/example.js b/node_modules/parse-headers/example.js
new file mode 100644 (file)
index 0000000..1b02863
--- /dev/null
@@ -0,0 +1,11 @@
+var parse = require('./parse-headers')
+
+  , headers = [
+        'Date: Sun, 17 Aug 2014 16:24:52 GMT'
+      , 'Content-Type: text/html; charset=utf-8'
+      , 'Transfer-Encoding: chunked'
+      , 'X-Custom-Header: beep'
+      , 'X-Custom-Header: boop'
+    ].join('\n')
+
+console.log(parse(headers))
\ No newline at end of file