diff --git a/Sources/GRPC/ClientCalls/BidirectionalStreamingCall.swift b/Sources/GRPC/ClientCalls/BidirectionalStreamingCall.swift index e210931f1..1361310c1 100644 --- a/Sources/GRPC/ClientCalls/BidirectionalStreamingCall.swift +++ b/Sources/GRPC/ClientCalls/BidirectionalStreamingCall.swift @@ -37,6 +37,11 @@ public struct BidirectionalStreamingCall< return self.call.options } + /// The path used to make the RPC. + public var path: String { + return self.call.path + } + /// The `Channel` used to transport messages for this RPC. public var subchannel: EventLoopFuture { return self.call.channel diff --git a/Sources/GRPC/ClientCalls/ClientStreamingCall.swift b/Sources/GRPC/ClientCalls/ClientStreamingCall.swift index 3df311535..00ca4c243 100644 --- a/Sources/GRPC/ClientCalls/ClientStreamingCall.swift +++ b/Sources/GRPC/ClientCalls/ClientStreamingCall.swift @@ -35,6 +35,11 @@ public struct ClientStreamingCall: StreamingReq return self.call.options } + /// The path used to make the RPC. + public var path: String { + return self.call.path + } + /// The `Channel` used to transport messages for this RPC. public var subchannel: EventLoopFuture { return self.call.channel diff --git a/Sources/GRPC/ClientCalls/ServerStreamingCall.swift b/Sources/GRPC/ClientCalls/ServerStreamingCall.swift index faf419aa7..67936f907 100644 --- a/Sources/GRPC/ClientCalls/ServerStreamingCall.swift +++ b/Sources/GRPC/ClientCalls/ServerStreamingCall.swift @@ -32,6 +32,11 @@ public struct ServerStreamingCall: ClientCall { return self.call.options } + /// The path used to make the RPC. + public var path: String { + return self.call.path + } + /// The `Channel` used to transport messages for this RPC. public var subchannel: EventLoopFuture { return self.call.channel diff --git a/Sources/GRPC/ClientCalls/UnaryCall.swift b/Sources/GRPC/ClientCalls/UnaryCall.swift index 335054aea..8033f3413 100644 --- a/Sources/GRPC/ClientCalls/UnaryCall.swift +++ b/Sources/GRPC/ClientCalls/UnaryCall.swift @@ -34,6 +34,11 @@ public struct UnaryCall: UnaryResponseClientCal return self.call.options } + /// The path used to make the RPC. + public var path: String { + return self.call.path + } + /// The `Channel` used to transport messages for this RPC. public var subchannel: EventLoopFuture { return self.call.channel