From af7e3b55b0e608691328d04dc34cb97b08e7bff1 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 1 May 2020 11:25:43 +0300 Subject: Add: bindings file --- ewww.md | 9 +++++---- ewww.yaml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 ewww.yaml 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 — 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 + -- cgit v1.2.1