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
+28-19Lines changed: 28 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,16 +14,19 @@ Provides a directive to filter response bodies.
14
14
15
15
## Usage
16
16
17
-
Add ``filter rule``blocks to your CaddyFile.
17
+
Add ``filter``block to your CaddyFile which contains one ore more ``rule`` blocks.
18
18
19
19
```
20
-
filter rule {
21
-
path <regexp pattern>
22
-
content_type <regexp pattern>
23
-
search_pattern <regexp pattern>
24
-
replacement <replacement pattern>
20
+
filter {
21
+
rule {
22
+
path <regexp pattern>
23
+
content_type <regexp pattern>
24
+
search_pattern <regexp pattern>
25
+
replacement <replacement pattern>
26
+
}
27
+
rule ...
28
+
maximumBufferSize <maximum buffer size in bytes>
25
29
}
26
-
file maximumBufferSize <maximum buffer size in bytes>
27
30
```
28
31
29
32
> **Important:** Define ``path`` and/or ``content_type`` not to open. Slack rules could dramatically impact the system performance because every response is recorded to memory before returning it.
c.Assert(err, DeepEquals, errors.New("Testfile:1 - Parse error: There is no valid value for filter command 'maximumBufferSize' provided. Got: strconv.ParseInt: parsing \"abc\": invalid syntax"))
190
+
c.Assert(err, DeepEquals, errors.New("Testfile:1 - Parse error: There is no valid value for filter directive 'maximumBufferSize' provided. Got: strconv.ParseInt: parsing \"abc\": invalid syntax"))
0 commit comments