Skip to content

Protocol

class Protocol

Bases: StrEnum

Source code in urlx/url_enums/protocol.py
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
class Protocol(StrEnum):
    # HTTP
    HTTP = 'http'
    HTTPS = 'https'

    # FTP
    FTP = 'ftp'
    FTPS = 'ftps'

    # Cloud storages
    S3 = 's3'
    GOOGLE_STORAGE = 'gs'

    # Advanced Message Queuing Protocol
    AMQP = 'amqp'

    # Websocket
    WEB_SOCKET = 'ws'

    # Databases
    REDIS = 'redis'
    POSTGRES = 'postgres'
    JAVA_CONNECTOR_MYSQL = 'jdbc:mysql'
    JAVA_CONNECTOR_REDSHIFT = 'jdbc:redshift'