Skip to content

Commit b6d2029

Browse files
committed
Release v0.5.3
1 parent 908e498 commit b6d2029

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Parameters:
1111
use JSON log format
1212
-level string
1313
one of debug/warn/error/off (default "info")
14+
-path string
15+
path to search recursively for X-Erised-Response-File (default ".")
1416
-port int
1517
port to listen (default 8080)
1618
-read int
@@ -47,6 +49,7 @@ Response behaviour is controlled via custom headers in the http request:
4749
|X-Erised-Headers|Returns the value(s) in the response header. Values **must** be in a JSON key/value list|
4850
|X-Erised-Location|Sets the response _Location_ to the new (redirected) URL or path, when 300 ≤ _X-Erised-Status-Code_ < 310|
4951
|X-Erised-Response-Delay|Number of **milliseconds** to wait before sending response back to client|
52+
|X-Erised-Response-File|Returns the contents of **file** in the response body. If present, _X-Erised-Data_ is ignored|
5053
|X-Erised-Status-Code|Sets the HTTP Status Code|
5154

5255
By design, no validation is performed on _X-Erised-Data_ or _X-Erised-Location_.
@@ -89,6 +92,7 @@ NetworkAuthenticationRequired or 511
8992
Any other value will resolve to 200 (OK)
9093

9194
# Release History
95+
* v0.5.3 - Add file based responses
9296
* v0.4.1 - Add route concurrency, update tests and dependencies
9397
* v0.3.4 - Add [gomega](https://onsi.github.io/gomega/) assertion library, refactor tests to use Ω assertions and minor bug fixes
9498
* v0.3.0 - Add [goblin](https://github.com/franela/goblin) framework and unit tests

0 commit comments

Comments
 (0)