File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Sources/HTTP/Message/Body Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,19 @@ public enum Body {
4
4
case input( StreamReader )
5
5
case output( ( StreamWriter ) async throws -> Void )
6
6
7
- static func input( _ bytes: [ UInt8 ] ) -> Body {
7
+ public static func input( _ bytes: [ UInt8 ] ) -> Body {
8
8
. input( InputByteStream ( bytes) )
9
9
}
10
10
11
- static func input( _ string: String ) -> Body {
11
+ public static func input( _ string: String ) -> Body {
12
12
. input( InputByteStream ( string) )
13
13
}
14
14
15
- static func output( _ bytes: [ UInt8 ] ) -> Body {
15
+ public static func output( _ bytes: [ UInt8 ] ) -> Body {
16
16
. output( { try await $0. write ( bytes) } )
17
17
}
18
18
19
- static func output( _ string: String ) -> Body {
19
+ public static func output( _ string: String ) -> Body {
20
20
. output( { try await $0. write ( string) } )
21
21
}
22
22
}
You can’t perform that action at this time.
0 commit comments