diff options
author | Kim Alvefur <zash@zash.se> | 2021-01-26 03:19:17 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-01-26 03:19:17 +0100 |
commit | 4be9b33741b71925adddf7ee184b3babf2170347 (patch) | |
tree | d1dfc3940b89b83640520cbe0b924e6273936d77 /spec | |
parent | 800af648de857e5bb2d328d0325bb637d5a5a1f5 (diff) | |
download | prosody-4be9b33741b71925adddf7ee184b3babf2170347.tar.gz prosody-4be9b33741b71925adddf7ee184b3babf2170347.zip |
mod_http_file_share: Let's write another XEP-0363 implementation
This variant is meant to improve upon mod_http_upload in some ways:
* Handle files much of arbitrary size efficiently
* Allow GET and PUT URLs to be different
* Remember Content-Type sent by client
* Avoid dependency on mod_http_files
* Built-in way to delegate storage to another httpd
Diffstat (limited to 'spec')
-rw-r--r-- | spec/scansion/http_upload.scs | 26 | ||||
-rw-r--r-- | spec/scansion/prosody.cfg.lua | 2 |
2 files changed, 28 insertions, 0 deletions
diff --git a/spec/scansion/http_upload.scs b/spec/scansion/http_upload.scs new file mode 100644 index 00000000..a683483e --- /dev/null +++ b/spec/scansion/http_upload.scs @@ -0,0 +1,26 @@ +[Client] Romeo + password: password + jid: filesharingenthusiast@localhost/krxLaE3s + +----- + +Romeo connects + +Romeo sends: + <iq to='upload.localhost' type='get' id='932c02fe-4461-4ad4-9c85-54863294b4dc' xml:lang='en'> + <request content-type='text/plain' filename='verysmall.dat' xmlns='urn:xmpp:http:upload:0' size='5'/> + </iq> + +Romeo receives: + <iq id='932c02fe-4461-4ad4-9c85-54863294b4dc' from='upload.localhost' type='result'> + <slot xmlns='urn:xmpp:http:upload:0'> + <get url='{scansion:any}'/> + <put url='{scansion:any}'> + <header name='Authorization'></header> + </put> + </slot> + </iq> + +Romeo disconnects + +# recording ended on 2021-01-27T22:10:46Z diff --git a/spec/scansion/prosody.cfg.lua b/spec/scansion/prosody.cfg.lua index d147db54..ca28b6ba 100644 --- a/spec/scansion/prosody.cfg.lua +++ b/spec/scansion/prosody.cfg.lua @@ -131,3 +131,5 @@ Component "conference.localhost" "muc" Component "pubsub.localhost" "pubsub" storage = "memory" + +Component "upload.localhost" "http_file_share" |