소스 검색

Make header names internal (#666)

George Barnett 6 년 전
부모
커밋
dcba0fd4d8
1개의 변경된 파일6개의 추가작업 그리고 9개의 파일을 삭제
  1. 6 9
      Sources/GRPC/GRPCHeaderName.swift

+ 6 - 9
Sources/GRPC/GRPCHeaderName.swift

@@ -13,14 +13,11 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-import Foundation
 
-public struct GRPCHeaderName {
-  private init() { }
-
-  public static let timeout = "grpc-timeout"
-  public static let encoding = "grpc-encoding"
-  public static let acceptEncoding = "grpc-accept-encoding"
-  public static let statusCode = "grpc-status"
-  public static let statusMessage = "grpc-message"
+internal enum GRPCHeaderName {
+  static let timeout = "grpc-timeout"
+  static let encoding = "grpc-encoding"
+  static let acceptEncoding = "grpc-accept-encoding"
+  static let statusCode = "grpc-status"
+  static let statusMessage = "grpc-message"
 }