platypush/platypush/message/event/http/__init__.py

22 lines
500 B
Python
Raw Normal View History

2018-01-10 03:14:27 +01:00
from platypush.message.event import Event
class HttpEvent(Event):
2018-07-09 22:37:54 +02:00
"""
Event triggered upon HTTP request/response cycle completion
"""
2018-01-10 03:14:27 +01:00
def __init__(self, request, response, *args, **kwargs):
2018-07-09 22:37:54 +02:00
"""
:param request: Reference to the original HTTP request
:type request: dict
:param response: The server response
:type response: dict
"""
2018-01-10 03:14:27 +01:00
super().__init__(request=request, response=response, *args, **kwargs)
# vim:sw=4:ts=4:et: