rename extractor/extractors to extract

This commit is contained in:
debugtalk
2017-11-01 14:30:36 +08:00
parent bd8540622d
commit 9bd28653f6
14 changed files with 20 additions and 21 deletions

View File

@@ -24,7 +24,7 @@ Suppose we get the following HTTP response.
}
```
In `extractors` and `validators`, we can do chain operation to extract data field in HTTP response.
In `extract` and `validators`, we can do chain operation to extract data field in HTTP response.
For instance, if we want to get `Content-Type` in response headers, then we can specify `headers.content-type`; if we want to get `first_name` in response content, we can specify `content.person.name.first_name`.
@@ -46,7 +46,7 @@ content.person.cities.1
```
```yaml
extractors:
extract:
- content_type: headers.content-type
- first_name: content.person.name.first_name
validators: