You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-5Lines changed: 24 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,13 @@ Parameters:
17
17
18
18
For help type **erised -h**
19
19
20
-
Upon executing **erised** with no parameters it will listen on port **8080** for incoming http requests.
20
+
Upon executing **erised** with no parameters it will listen on port **8080** for incoming http requests.
21
+
22
+
The latest version is available as a Docker image at [edaddario/erised](https://hub.docker.com/r/edaddario/erised)
23
+
24
+
```sh
25
+
docker run --rm -p 8080:8080 edaddario/erised
26
+
```
21
27
22
28
HTTP methods (e.g. GET, POST, PATCH, etc.), query strings and body are **ignored**. URL Paths are also ignored, except for:
23
29
@@ -31,11 +37,12 @@ Response behaviour is controlled via custom headers in the http request:
31
37
32
38
|Name|Purpose|
33
39
|--|--|
34
-
|X-Erised-Data|Returns the **same** value in the response body|
35
40
|X-Erised-Content-Type|Sets the response _Content-Type_. Valid values are **text** (default) for _text/plain_, **json** for _application/json_, **xml** for _application/xml_ and **gzip** for _application/octet-stream_. When using **gzip**, _Content-Encoding_ is also set to **gzip** and the response body is compressed accordingly.|
41
+
|X-Erised-Data|Returns the **same** value in the response body|
42
+
|X-Erised-Headers|Returns the value(s) in the response header. Values **must** be in a JSON array|
43
+
|X-Erised-Location|Sets the response _Location_ to the new (redirected) URL or path, when 300 ≤ _X-Erised-Status-Code_ < 310|
44
+
|X-Erised-Response-Delay|Number of **milliseconds** to wait before sending response back to client|
36
45
|X-Erised-Status-Code|Sets the HTTP Status Code|
37
-
|X-Erised-Location|Sets the response _Location_ to the new (redirected) URL or path, when 300 ≤ _X-Erised-Status-Code_ < 310
38
-
|X-Erised-Response-Delay|Number of milliseconds to wait before sending response back to client
39
46
40
47
By design, no validation is performed on _X-Erised-Data_ or _X-Erised-Location_.
41
48
@@ -77,6 +84,7 @@ NetworkAuthenticationRequired or 511
0 commit comments