uptime-kuma-api/uptime_kuma_api/proxy_protocol.py

24 lines
336 B
Python
Raw Permalink Normal View History

2022-07-02 20:26:18 +02:00
from enum import Enum
class ProxyProtocol(str, Enum):
"""Enumerate proxy protocols."""
2022-07-02 20:26:18 +02:00
HTTPS = "https"
"""HTTPS"""
2022-07-02 20:26:18 +02:00
HTTP = "http"
"""HTTP"""
2022-07-02 20:26:18 +02:00
SOCKS = "socks"
"""SOCKS"""
2022-07-02 20:26:18 +02:00
SOCKS5 = "socks5"
"""SOCKS v5"""
SOCKS5H = "socks5h"
"""SOCKS v5 (+DNS)"""
2022-07-02 20:26:18 +02:00
SOCKS4 = "socks4"
"""SOCKS v4"""