diff options
author | Loïc Hoguin <[email protected]> | 2016-06-13 13:23:22 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-06-13 13:26:24 +0200 |
commit | 88227898edd26a823d0942fc7226adb61a20cb5d (patch) | |
tree | af1aeb41e7b92145b3be017cfdf18bf66f4a8e6e /examples/static_world/README.asciidoc | |
parent | 4293a40d9e922bc00f25d6c7e328f86e102275a0 (diff) | |
download | cowboy-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/static_world/README.asciidoc')
-rw-r--r-- | examples/static_world/README.asciidoc | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/examples/static_world/README.asciidoc b/examples/static_world/README.asciidoc deleted file mode 100644 index 3f09900..0000000 --- a/examples/static_world/README.asciidoc +++ /dev/null @@ -1,30 +0,0 @@ -= Static file handler example - -To try this example, you need GNU `make` and `git` in your PATH. - -To build and run the example, use the following command: - -[source,bash] -$ make run - -The example will serve all the files found in the 'priv/' -directory. For example: - -* http://localhost:8080/test.txt[Plain text file] -* http://localhost:8080/video.html[HTML5 video demo] - -== Example output - -[source,bash] ----- -$ curl -i http://localhost:8080/test.txt -HTTP/1.1 200 OK -connection: keep-alive -server: Cowboy -date: Mon, 09 Sep 2013 13:49:50 GMT -content-length: 52 -content-type: text/plain -last-modified: Fri, 18 Jan 2013 16:33:31 GMT - -If you read this then the static file server works! ----- |