proxy.py/proxy/core/event/names.py

29 lines
909 B
Python
Raw Normal View History

2020-01-07 19:38:25 +00:00
# -*- coding: utf-8 -*-
"""
proxy.py
~~~~~~~~
Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on
Network monitoring, controls & Application development, testing, debugging.
:copyright: (c) 2013-present by Abhinav Singh and contributors.
:license: BSD, see LICENSE for more details.
"""
from typing import NamedTuple
# Name of the events that eventing framework will support
# Ideally this must be configurable via command line or
# at-least extendable via plugins.
EventNames = NamedTuple(
'EventNames', [
('SUBSCRIBE', int),
('UNSUBSCRIBE', int),
('WORK_STARTED', int),
('WORK_FINISHED', int),
('REQUEST_COMPLETE', int),
('RESPONSE_HEADERS_COMPLETE', int),
('RESPONSE_CHUNK_RECEIVED', int),
('RESPONSE_COMPLETE', int),
],
)
2020-01-07 19:38:25 +00:00
eventNames = EventNames(1, 2, 3, 4, 5, 6, 7, 8)