platypush/platypush/message/event/http/__init__.py
Fabio Manganiello 5293f5b203 #73: Implemented wrapper plugin for the new Node.js mercury-parser.
As the Mercury reader web API is deprecated, and the only available
implementation is the open source mercury-parser, node, npm and
@postlight/mercury-parser have to be added as dependencies for the
http.webpage plugin (or at least for the `simplify` action).
2019-07-24 19:02:53 +02:00

23 lines
509 B
Python

from platypush.message.event import Event
class HttpEvent(Event):
"""
Event triggered upon HTTP request/response cycle completion
"""
def __init__(self, request, response, *args, **kwargs):
"""
:param request: Reference to the original HTTP request
:type request: dict
:param response: The server response
:type response: dict or list
"""
super().__init__(request=request, response=response, *args, **kwargs)
# vim:sw=4:ts=4:et: