Boilerplate for Stanzas - request and response
This commit is contained in:
parent
be76dda21d
commit
0fe057b5c3
@ -11,5 +11,6 @@
|
||||
from sleekxmpp.plugins.base import register_plugin
|
||||
|
||||
from sleekxmpp.plugins.xep_0332.http import XEP_0332
|
||||
from sleekxmpp.plugins.xep_0332 import stanza
|
||||
|
||||
register_plugin(XEP_0332)
|
||||
|
@ -8,12 +8,5 @@
|
||||
See the file LICENSE for copying permission.
|
||||
"""
|
||||
|
||||
from sleekxmpp.xmlstream import ElementBase
|
||||
|
||||
|
||||
class Req(ElementBase):
|
||||
pass
|
||||
|
||||
|
||||
class Resp(ElementBase):
|
||||
pass
|
||||
from sleekxmpp.plugins.xep_0332.stanza.request import *
|
||||
from sleekxmpp.plugins.xep_0332.stanza.response import *
|
21
sleekxmpp/plugins/xep_0332/stanza/request.py
Normal file
21
sleekxmpp/plugins/xep_0332/stanza/request.py
Normal file
@ -0,0 +1,21 @@
|
||||
"""
|
||||
SleekXMPP: The Sleek XMPP Library
|
||||
Implementation of HTTP over XMPP transport
|
||||
http://xmpp.org/extensions/xep-0332.html
|
||||
Copyright (C) 2015 Riptide IO, sangeeth@riptideio.com
|
||||
This file is part of SleekXMPP.
|
||||
|
||||
See the file LICENSE for copying permission.
|
||||
"""
|
||||
|
||||
from sleekxmpp import Iq
|
||||
from sleekxmpp.xmlstream import ElementBase, register_stanza_plugin
|
||||
from sleekxmpp.plugins.xep_0131.stanza import Headers
|
||||
|
||||
|
||||
class Request(ElementBase):
|
||||
pass
|
||||
|
||||
|
||||
register_stanza_plugin(Iq, Request)
|
||||
register_stanza_plugin(Request, Headers)
|
21
sleekxmpp/plugins/xep_0332/stanza/response.py
Normal file
21
sleekxmpp/plugins/xep_0332/stanza/response.py
Normal file
@ -0,0 +1,21 @@
|
||||
"""
|
||||
SleekXMPP: The Sleek XMPP Library
|
||||
Implementation of HTTP over XMPP transport
|
||||
http://xmpp.org/extensions/xep-0332.html
|
||||
Copyright (C) 2015 Riptide IO, sangeeth@riptideio.com
|
||||
This file is part of SleekXMPP.
|
||||
|
||||
See the file LICENSE for copying permission.
|
||||
"""
|
||||
|
||||
from sleekxmpp import Iq
|
||||
from sleekxmpp.xmlstream import ElementBase, register_stanza_plugin
|
||||
from sleekxmpp.plugins.xep_0131.stanza import Headers
|
||||
|
||||
|
||||
class Response(ElementBase):
|
||||
pass
|
||||
|
||||
|
||||
register_stanza_plugin(Iq, Response)
|
||||
register_stanza_plugin(Response, Headers)
|
Loading…
Reference in New Issue
Block a user