From baedbdc218a72d7df3059eb4cf2483c107a7c1dd Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Wed, 24 Mar 2021 19:59:17 +0000 Subject: [PATCH] Add ws, wss schemes --- Sources/Hummingbird/HTTP/URL.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Hummingbird/HTTP/URL.swift b/Sources/Hummingbird/HTTP/URL.swift index b62cf2300..cc849e3dd 100644 --- a/Sources/Hummingbird/HTTP/URL.swift +++ b/Sources/Hummingbird/HTTP/URL.swift @@ -12,6 +12,8 @@ public struct HBURL: CustomStringConvertible, ExpressibleByStringLiteral { public static var unix: Self { return .init(rawValue: "unix") } public static var http_unix: Self { return .init(rawValue: "http_unix") } public static var https_unix: Self { return .init(rawValue: "https_unix") } + public static var ws: Self { return .init(rawValue: "ws") } + public static var wss: Self { return .init(rawValue: "wss") } } public let string: String