...
Description of Properties
Property Name | Type | Default | Importance | Description | Example for Value |
---|---|---|---|---|---|
response.http.headers | string | "" |
medium | Defines names of headers which will be separated by comma. The name could be any string which uniquely identify header. | default, |
header1, |
header2 | ||||
response.http.headers.{name}.header.config | string | "" | low | Define a set of |
HTTP headers for header defined by {name} which will be one of names defined in property response.http.headers. |
Detailed explanation see Detailed Explanation section. | set X-Frame-Options: DENY, |
"add Cache-Control: no-cache, no-store, must-revalidate", setDate Expires: 31540000000, addDate Last-Modified: 0 | |||||
response.http.headers.{name}. included.paths | string | "" | low | It is a comma separated values of included path specs applied to HTTP headers. See path spec rules section. | /connectors/connector1/topics/* |
response.http.headers.{name}.excluded.paths | string | "" | low | It is a comma separated values of excluded path specs applied to HTTP headers. See path spec rules section. | /connectors/connector1/status |
response.http.headers.{name}.included.mime.types | string | "" | low | It is a comma separated values of included mime types applied to HTTP headers | application/json |
response.http.headers.{name}.excluded.mime.types | string | "" | low | It is a comma separated values of excluded mime types applied to HTTP headers. | application/xml |
response.http.headers.{name}.included.http.methods | string | "" | low | It is a comma separated values of included http methods applied to HTTP headers | POST,PUT |
response.http.headers.{name}.excluded.http.methods | string | "" | low | It is a comma separated values of excluded http methods applied to HTTP headers | GET |
Detailed Explanation
response.http.headers.{name}.header.config
...
[header name] specify name of header.
[header value] specify value for the header. We need to put double quotes around the value if the value contains commas because we use comma as separator for different headers.
Example:
Code Block | ||
---|---|---|
| ||
header.config=set X-Frame-Options: DENY, "add Cache-Control: no-cache, no-store, must-revalidate", setDate Expires: 31540000000, addDate Last-Modified: 0 |
...
It is optional. it is a comma separated values of included path specs applied to header.config. See path spec rules section.
Example:
Code Block | ||
---|---|---|
| ||
included.paths=^/test/0$ |
excluded.paths
It is optional. it is a comma separated values of excluded path specs applied to header.config. See path spec rules section.
Example:
Code Block | ||
---|---|---|
| ||
excluded.paths=^/test/0$ |
included.mime.types
It is optional. it is a comma separated values of included mime types applied to header.config.
Example:
...
...
language | text |
---|
...
included.mime.types=application/json
excluded.mime.types
It is optional. it is a comma separated values of excluded mime types applied to header.config.
Example:
Code Block | ||
---|---|---|
| ||
excluded.mime.types=application/xml |
included.http.methods
It is optional. it is a comma separated values of included http methods applied to header.config.
Example:
Code Block | ||
---|---|---|
| ||
included.http.methods=POST,PUT |
...
It is optional. it is a comma separated values of excluded http methods applied to header.config.
Example:
Code Block | ||
---|---|---|
| ||
excluded.http.methods=GET |
Path Spec Rules:
- If the spec starts with
^
, the spec is assumed to be a regex based path spec and will match with normal Java regex rules. - If the spec starts with
/
, the spec is assumed to be a Servlet url-pattern rules path spec for either an exact match or prefix based match. - If the spec starts with
*.
, the spec is assumed to be a Servlet url-pattern rules path spec for a suffix based match. - All other syntaxes are unsupported.
...
Code Block |
---|
response.http.headers.header1default.header.config=set X-Frame-Options: DENY, "add Cache-Control: no-cache, no-store, must-revalidate", setDate Expires: 31540000000, addDate Last-Modified: 0 response.http.headers.header1default.header.included.paths=^/test/0$/connectors/connector1/topics/* response.http.headers.header1default.excluded.paths=^/connectors/test1/0$ connector1/status response.http.headers.header1default.included.mime.types=application/json response.http.headers.header1default.excluded.mime.types=application/xml response.http.headers.header1default.included.http.methods=POST,PUT response.http.headers.header1default.excluded.http.methods=GET response.http.headers.header2header1.header.config=set X-Frame-Options: DENY, "add Cache-Control: no-cache, no-store, must-revalidate", setDate Expires: 31540000000, addDate Last-Modified: 0 response.http.headers.header2header1.header.included.paths=^/test2/0$ response.http.headers.header2header1.excluded.paths=^/test3/0$ response.http.headers.header2header1.included.mime.types=application/json response.http.headers.header2header1.excluded.mime.types=application/xml response.http.headers.header2header1.included.http.methods=POST,PUT response.http.headers.header2header1.excluded.http.methods=GET |
...