Comparison

mod_rest/README.markdown @ 4919:b9f8dd9a7fdb

mod_rest/README: Mention the OPTIONS probe fired at the callback ... in passing. Should be documented better. But not this day! This day, I commit features!
author Kim Alvefur <zash@zash.se>
date Sat, 09 Apr 2022 00:37:55 +0200
parent 4535:dc35d2932d3e
child 4920:bdac7c717c91
comparison
equal deleted inserted replaced
4918:347e34c3c7e2 4919:b9f8dd9a7fdb
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