forked from platypush/platypush
5293f5b203
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).
22 lines
509 B
Python
22 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:
|
|
|