aboutsummaryrefslogtreecommitdiff
path: root/Sources/swift-gopher/helpers.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sources/swift-gopher/helpers.swift')
-rw-r--r--Sources/swift-gopher/helpers.swift7
1 files changed, 6 insertions, 1 deletions
diff --git a/Sources/swift-gopher/helpers.swift b/Sources/swift-gopher/helpers.swift
index caf841b..f054d17 100644
--- a/Sources/swift-gopher/helpers.swift
+++ b/Sources/swift-gopher/helpers.swift
@@ -6,4 +6,9 @@ func buildVersionStringResponse() -> String {
let repeatedString = "i" + String(repeating: "-", count: 80) + "\t\terror.host\t1\r\n"
let versionResponseString = "i" + String(repeating: " ", count: 80 - versionString.count) + versionString + "\t\terror.host\t1\r\n"
return "\(repeatedString)\(versionResponseString)"
-} \ No newline at end of file
+}
+
+enum ResponseType {
+ case string(String)
+ case data(Data)
+}