Browse Source

Make header names internal (#666)

George Barnett 6 năm trước cách đây
mục cha
commit
dcba0fd4d8
1 tập tin đã thay đổi với 6 bổ sung9 xóa
  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"
 }