Mercurial > prosody-modules
comparison mod_rest/README.markdown @ 4920: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 |
parents | dc35d2932d3e |
children | bdac7c717c91 |
comparison
equal
deleted
inserted
replaced
4919:347e34c3c7e2 | 4920: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 |