Skip to content

Commit 8ca4bc0

Browse files
authored
Make path available in ClientCalls (#1237)
* Make path available in ClientCalls
1 parent cf564ed commit 8ca4bc0

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

Sources/GRPC/ClientCalls/BidirectionalStreamingCall.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ public struct BidirectionalStreamingCall<
3737
return self.call.options
3838
}
3939

40+
/// The path used to make the RPC.
41+
public var path: String {
42+
return self.call.path
43+
}
44+
4045
/// The `Channel` used to transport messages for this RPC.
4146
public var subchannel: EventLoopFuture<Channel> {
4247
return self.call.channel

Sources/GRPC/ClientCalls/ClientStreamingCall.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ public struct ClientStreamingCall<RequestPayload, ResponsePayload>: StreamingReq
3535
return self.call.options
3636
}
3737

38+
/// The path used to make the RPC.
39+
public var path: String {
40+
return self.call.path
41+
}
42+
3843
/// The `Channel` used to transport messages for this RPC.
3944
public var subchannel: EventLoopFuture<Channel> {
4045
return self.call.channel

Sources/GRPC/ClientCalls/ServerStreamingCall.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ public struct ServerStreamingCall<RequestPayload, ResponsePayload>: ClientCall {
3232
return self.call.options
3333
}
3434

35+
/// The path used to make the RPC.
36+
public var path: String {
37+
return self.call.path
38+
}
39+
3540
/// The `Channel` used to transport messages for this RPC.
3641
public var subchannel: EventLoopFuture<Channel> {
3742
return self.call.channel

Sources/GRPC/ClientCalls/UnaryCall.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ public struct UnaryCall<RequestPayload, ResponsePayload>: UnaryResponseClientCal
3434
return self.call.options
3535
}
3636

37+
/// The path used to make the RPC.
38+
public var path: String {
39+
return self.call.path
40+
}
41+
3742
/// The `Channel` used to transport messages for this RPC.
3843
public var subchannel: EventLoopFuture<Channel> {
3944
return self.call.channel

0 commit comments

Comments
 (0)