summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-05-01 11:25:43 +0300
committerLars Wirzenius <liw@liw.fi>2020-05-01 11:25:43 +0300
commitaf7e3b55b0e608691328d04dc34cb97b08e7bff1 (patch)
tree1a5ce02d3facfc6ecf027b0d005056708df136a2
parent1a6b171b184381fcda3eab5bcad0bac1a25e8a61 (diff)
downloadewww-af7e3b55b0e608691328d04dc34cb97b08e7bff1.tar.gz
Add: bindings file
-rw-r--r--ewww.md9
-rw-r--r--ewww.yaml30
2 files changed, 35 insertions, 4 deletions
diff --git a/ewww.md b/ewww.md
index 9214753..b1a9ad0 100644
--- a/ewww.md
+++ b/ewww.md
@@ -1,6 +1,6 @@
# Introduction
-This is a web server for static sites. It aims to be simple code,
+Ewww is a web server for static sites. It aims to be simple code,
simple to configure, simple to keep running, and fast.
## Use cases
@@ -112,7 +112,7 @@ when I request HEAD https://example.com/
then I get status code 200
when I request GET https://www.example.com/
-then I get redirected to https://example.com/
+then I am redirected to https://example.com/
~~~
The following config file does not specify port numbers. The test
@@ -144,6 +144,7 @@ then I can do at least 100 requests per second
---
-title: Web server for static sites
-bindings: webserver.yaml
+title: "Ewww &mdash; a Web server for static sites"
+author: Lars Wirzenius
+bindings: ewww.yaml
...
diff --git a/ewww.yaml b/ewww.yaml
new file mode 100644
index 0000000..a806380
--- /dev/null
+++ b/ewww.yaml
@@ -0,0 +1,30 @@
+- given: a self-signed certificate as {cert}, using key {key}
+ function: fixme
+
+- given: a running server using config file {filename}
+ function: fixme
+
+- given: "{count} files in {dirname}"
+ function: fixme
+
+- then: I am redirected to {location}
+ function: fixme
+
+- then: I can do at least {number} requests per second
+ function: fixme
+
+- then: I get status code {code}
+ function: fixme
+
+- then: "{header} is {value}"
+ function: fixme
+
+- when: I create {filename}
+ function: fixme
+
+- when: I request {method} {url}
+ function: fixme
+
+- when: I request files under {url} in random order {count} times
+ function: fixme
+