Make the member variables of HTTPHeader and HTTPHeaderIndex visible to swift-nio-http2. (#654)

This commit is contained in:
Jim Dovey authored and Johannes Weiss committed 2018-11-15 10:46:27 +00:00
1 parent 7445783b96
commit bf0cd5295e
1 file changed
+4 -4
+4 -4
View File
@@ -372,8 +372,8 @@ public struct HTTPResponseHead: Equatable {
/// - note: This is public to aid in the creation of supplemental HTTP libraries, e.g.
/// NIOHTTP2 and NIOHPACK. It is not intended for general use.
public struct HTTPHeaderIndex {
let start: Int
let length: Int
public let start: Int
public let length: Int
}
/// Struct which holds name, value pairs.
@@ -381,8 +381,8 @@ public struct HTTPHeaderIndex {
/// - note: This is public to aid in the creation of supplemental HTTP libraries, e.g.
/// NIOHTTP2 and NIOHPACK. It is not intended for general use.
public struct HTTPHeader {
let name: HTTPHeaderIndex
let value: HTTPHeaderIndex
public let name: HTTPHeaderIndex
public let value: HTTPHeaderIndex
}
private extension ByteBuffer {