Skip to content

Commit

Permalink
Add HTTP multipart config spec
Browse files Browse the repository at this point in the history
Signed-off-by: Arash Hatami <[email protected]>
  • Loading branch information
hatamiarash7 committed Aug 27, 2023
1 parent 97a52ba commit ffd677e
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,13 @@ modules:
[ body: <string> ]

# Read the HTTP request body from from a file.
# It is mutually exclusive with `body`.
# It is mutually exclusive with `body` and `body_multipart`.
[ body_file: <filename> ]

# Read the HTTP request body from from a file.
# It is mutually exclusive with `body` and `body_file`.
[ body_multipart: <filename> ]
[ - <body_multipart_spec>, ... ]
```
#### `<http_header_match_spec>`
Expand All @@ -171,6 +175,17 @@ regexp: <regex>,
[ allow_missing: <boolean> | default = false ]
```

#### `<body_multipart_spec>`

```yml
# The type of the multipart body part. Valid values are "file" and "text".
type: <string>
# The name of the multipart body part.
key: <string>
# The value of the multipart body part. It can be a file path or a string.
value: <string>
```

### `<tcp_probe>`

```yml
Expand Down

0 comments on commit ffd677e

Please sign in to comment.