mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 20:50:24 +00:00
Add a web server example
Explore re-routing in middleware.
This commit is contained in:
parent
e3daf439da
commit
f112cdf643
14 changed files with 223 additions and 0 deletions
BIN
examples/web_server/priv/small.mp4
Normal file
BIN
examples/web_server/priv/small.mp4
Normal file
Binary file not shown.
BIN
examples/web_server/priv/small.ogv
Normal file
BIN
examples/web_server/priv/small.ogv
Normal file
Binary file not shown.
1
examples/web_server/priv/test.txt
Normal file
1
examples/web_server/priv/test.txt
Normal file
|
@ -0,0 +1 @@
|
|||
If you read this then the static file server works!
|
11
examples/web_server/priv/video.html
Normal file
11
examples/web_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