Skip to content

Commit c7cacbe

Browse files
committed
Make body helpers public
1 parent f2f8e29 commit c7cacbe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/HTTP/Message/Body/Body.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ public enum Body {
44
case input(StreamReader)
55
case output((StreamWriter) async throws -> Void)
66

7-
static func input(_ bytes: [UInt8]) -> Body {
7+
public static func input(_ bytes: [UInt8]) -> Body {
88
.input(InputByteStream(bytes))
99
}
1010

11-
static func input(_ string: String) -> Body {
11+
public static func input(_ string: String) -> Body {
1212
.input(InputByteStream(string))
1313
}
1414

15-
static func output(_ bytes: [UInt8]) -> Body {
15+
public static func output(_ bytes: [UInt8]) -> Body {
1616
.output({ try await $0.write(bytes) })
1717
}
1818

19-
static func output(_ string: String) -> Body {
19+
public static func output(_ string: String) -> Body {
2020
.output({ try await $0.write(string) })
2121
}
2222
}

0 commit comments

Comments
 (0)