Source code for platypush.message.event.http

from platypush.message.event import Event


[docs] class HttpEvent(Event): """ Event triggered upon HTTP request/response cycle completion """
[docs] 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: