diff options
author | Mike Taylor <bear42@gmail.com> | 2015-05-01 12:50:06 -0400 |
---|---|---|
committer | Mike Taylor <bear42@gmail.com> | 2015-05-01 12:50:06 -0400 |
commit | a8ac115310c1b9aaa80cc0d48a1157396b29abd3 (patch) | |
tree | 8f8cc46e058dda0294d060c94b1b8b98f4725b18 /sleekxmpp/plugins/xep_0332/stanza/response.py | |
parent | 192b7e0349429839261eb4d1d42d8f75933dc0c2 (diff) | |
parent | 1345b7c1d0b3c121471034521e9028cd43569cb7 (diff) | |
download | slixmpp-a8ac115310c1b9aaa80cc0d48a1157396b29abd3.tar.gz slixmpp-a8ac115310c1b9aaa80cc0d48a1157396b29abd3.tar.bz2 slixmpp-a8ac115310c1b9aaa80cc0d48a1157396b29abd3.tar.xz slixmpp-a8ac115310c1b9aaa80cc0d48a1157396b29abd3.zip |
Merge pull request #363 from sangeeths/xep_0332
XEP_332: Prefixed request and response with "http"
Diffstat (limited to 'sleekxmpp/plugins/xep_0332/stanza/response.py')
-rw-r--r-- | sleekxmpp/plugins/xep_0332/stanza/response.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sleekxmpp/plugins/xep_0332/stanza/response.py b/sleekxmpp/plugins/xep_0332/stanza/response.py index 0fc46de8..6804ade9 100644 --- a/sleekxmpp/plugins/xep_0332/stanza/response.py +++ b/sleekxmpp/plugins/xep_0332/stanza/response.py @@ -11,7 +11,7 @@ from sleekxmpp.xmlstream import ElementBase -class Response(ElementBase): +class HTTPResponse(ElementBase): """ When the HTTP Server responds, it does so by sending an `iq` stanza @@ -21,8 +21,13 @@ class Response(ElementBase): in which the original requests were made. Examples: - <iq type='result' from='httpserver@clayster.com' to='httpclient@clayster.com/browser' id='2'> - <resp xmlns='urn:xmpp:http' version='1.1' statusCode='200' statusMessage='OK'> + <iq type='result' + from='httpserver@clayster.com' + to='httpclient@clayster.com/browser' id='2'> + <resp xmlns='urn:xmpp:http' + version='1.1' + statusCode='200' + statusMessage='OK'> <headers xmlns='http://jabber.org/protocol/shim'> <header name='Date'>Fri, 03 May 2013 16:39:54GMT-4</header> <header name='Server'>Clayster</header> @@ -42,7 +47,7 @@ class Response(ElementBase): name = 'response' namespace = 'urn:xmpp:http' interfaces = set(['code', 'message', 'version']) - plugin_attrib = 'resp' + plugin_attrib = 'http-resp' def get_code(self): code = self._get_attr('statusCode', None) |