comparison mod_rest/README.markdown @ 3796:d1ad10b76b00

mod_rest: Catch one (1) reply to a POST-ed stanza from an internal source This will primarily cover error replies, and only those generated by the same Prosody instance using the `origin.reply()` method.
author Kim Alvefur <zash@zash.se>
date Mon, 30 Dec 2019 05:14:49 +0100
parents f51308fcba83
children ed5d7586a61e
comparison
equal deleted inserted replaced
3795:f51308fcba83 3796:d1ad10b76b00
49 --data-binary '<iq type="get" to="example.net"> 49 --data-binary '<iq type="get" to="example.net">
50 <ping xmlns="urn:xmpp:ping"/> 50 <ping xmlns="urn:xmpp:ping"/>
51 </iq>' 51 </iq>'
52 ``` 52 ```
53 53
54 Replies to other kinds of stanzas that are generated by the same Prosody
55 instance *MAY* be returned in the HTTP response. Replies from other
56 entities (connected clients or remote servers) will not be returned, but
57 can be forwarded via the callback API described in the next section.
58
54 ## Receiving stanzas 59 ## Receiving stanzas
55 60
56 TL;DR: Set this webhook callback URL, get XML `POST`-ed there. 61 TL;DR: Set this webhook callback URL, get XML `POST`-ed there.
57 62
58 ``` {.lua} 63 ``` {.lua}