瀏覽代碼

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"
 }