aboutsummaryrefslogtreecommitdiffstats
path: root/examples/file_server/priv
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-06-13 13:23:22 +0200
committerLoïc Hoguin <[email protected]>2016-06-13 13:26:24 +0200
commit88227898edd26a823d0942fc7226adb61a20cb5d (patch)
treeaf1aeb41e7b92145b3be017cfdf18bf66f4a8e6e /examples/file_server/priv
parent4293a40d9e922bc00f25d6c7e328f86e102275a0 (diff)
downloadcowboy-88227898edd26a823d0942fc7226adb61a20cb5d.tar.gz
cowboy-88227898edd26a823d0942fc7226adb61a20cb5d.tar.bz2
cowboy-88227898edd26a823d0942fc7226adb61a20cb5d.zip
Merge static_world and web_server examples
The new example is called file_server and it's basically the same as web_server was. The name is clearer than the original, all examples being "Web servers". The new example is also tested and the test suite has been refactored a little.
Diffstat (limited to 'examples/file_server/priv')
-rw-r--r--examples/file_server/priv/small.mp4bin0 -> 383631 bytes
-rw-r--r--examples/file_server/priv/small.ogvbin0 -> 872453 bytes
-rw-r--r--examples/file_server/priv/test.txt1
-rw-r--r--examples/file_server/priv/video.html11
4 files changed, 12 insertions, 0 deletions
diff --git a/examples/file_server/priv/small.mp4 b/examples/file_server/priv/small.mp4
new file mode 100644
index 0000000..1fc4788
--- /dev/null
+++ b/examples/file_server/priv/small.mp4
Binary files differ
diff --git a/examples/file_server/priv/small.ogv b/examples/file_server/priv/small.ogv
new file mode 100644
index 0000000..6409d6e
--- /dev/null
+++ b/examples/file_server/priv/small.ogv
Binary files differ
diff --git a/examples/file_server/priv/test.txt b/examples/file_server/priv/test.txt
new file mode 100644
index 0000000..760cddb
--- /dev/null
+++ b/examples/file_server/priv/test.txt
@@ -0,0 +1 @@
+If you read this then the static file server works!
diff --git a/examples/file_server/priv/video.html b/examples/file_server/priv/video.html
new file mode 100644
index 0000000..0830ae0
--- /dev/null
+++ b/examples/file_server/priv/video.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+<body>
+ <h1>HTML5 Video Example</h1>
+ <video controls>
+ <source src="small.ogv" type="video/ogg"/>
+ <source src="small.mp4" type="video/mp4"/>
+ </video>
+ <p>Videos taken from <a href="http://techslides.com/sample-webm-ogg-and-mp4-video-files-for-html5/">TechSlides</a></p>
+</body>
+</html>