mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-16 05:00:24 +00:00
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.
This commit is contained in:
parent
4293a40d9e
commit
88227898ed
26 changed files with 181 additions and 180 deletions
BIN
examples/file_server/priv/small.mp4
Normal file
BIN
examples/file_server/priv/small.mp4
Normal file
Binary file not shown.
BIN
examples/file_server/priv/small.ogv
Normal file
BIN
examples/file_server/priv/small.ogv
Normal file
Binary file not shown.
1
examples/file_server/priv/test.txt
Normal file
1
examples/file_server/priv/test.txt
Normal file
|
@ -0,0 +1 @@
|
|||
If you read this then the static file server works!
|
11
examples/file_server/priv/video.html
Normal file
11
examples/file_server/priv/video.html
Normal file
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue