equal
deleted
inserted
replaced
128 ``` {.lua} |
128 ``` {.lua} |
129 Component "rest.example.net" "rest" |
129 Component "rest.example.net" "rest" |
130 rest_callback_url = "http://my-api.example:9999/stanzas" |
130 rest_callback_url = "http://my-api.example:9999/stanzas" |
131 ``` |
131 ``` |
132 |
132 |
133 To enable JSON payloads set |
133 The preferred format can be indicated via the Accept header in response |
|
134 to an OPTIONS probe that mod_rest does on startup, or by configuring: |
134 |
135 |
135 ``` {.lua} |
136 ``` {.lua} |
136 rest_callback_content_type = "application/json" |
137 rest_callback_content_type = "application/json" |
137 ``` |
138 ``` |
138 |
139 |