File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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
5255By design, no validation is performed on _ X-Erised-Data_ or _ X-Erised-Location_ .
@@ -89,6 +92,7 @@ NetworkAuthenticationRequired or 511
8992Any 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
You can’t perform that action at this time.
0 commit comments