From bf0cd5295e604a4ababa454c06b34eb9927b670e Mon Sep 17 00:00:00 2001 From: Jim Dovey Date: Thu, 15 Nov 2018 02:46:27 -0800 Subject: [PATCH] Make the member variables of HTTPHeader and HTTPHeaderIndex visible to swift-nio-http2. (#654) --- Sources/NIOHTTP1/HTTPTypes.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/NIOHTTP1/HTTPTypes.swift b/Sources/NIOHTTP1/HTTPTypes.swift index 95550b7a3..8862edf1f 100644 --- a/Sources/NIOHTTP1/HTTPTypes.swift +++ b/Sources/NIOHTTP1/HTTPTypes.swift @@ -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 {