@@ -80,6 +80,7 @@ export type ServerSurfaceCall = {
80
80
getPeer ( ) : string ;
81
81
sendMetadata ( responseMetadata : Metadata ) : void ;
82
82
getDeadline ( ) : Deadline ;
83
+ getPath ( ) : string ;
83
84
} & EventEmitter ;
84
85
85
86
export type ServerUnaryCall < RequestType , ResponseType > = ServerSurfaceCall & {
@@ -127,6 +128,10 @@ export class ServerUnaryCallImpl<RequestType, ResponseType>
127
128
getDeadline ( ) : Deadline {
128
129
return this . call . getDeadline ( ) ;
129
130
}
131
+
132
+ getPath ( ) : string {
133
+ return this . call . getPath ( ) ;
134
+ }
130
135
}
131
136
132
137
export class ServerReadableStreamImpl < RequestType , ResponseType >
@@ -165,6 +170,10 @@ export class ServerReadableStreamImpl<RequestType, ResponseType>
165
170
getDeadline ( ) : Deadline {
166
171
return this . call . getDeadline ( ) ;
167
172
}
173
+
174
+ getPath ( ) : string {
175
+ return this . call . getPath ( ) ;
176
+ }
168
177
}
169
178
170
179
export class ServerWritableStreamImpl < RequestType , ResponseType >
@@ -202,6 +211,10 @@ export class ServerWritableStreamImpl<RequestType, ResponseType>
202
211
return this . call . getDeadline ( ) ;
203
212
}
204
213
214
+ getPath ( ) : string {
215
+ return this . call . getPath ( ) ;
216
+ }
217
+
205
218
_write (
206
219
chunk : ResponseType ,
207
220
encoding : string ,
@@ -279,6 +292,10 @@ export class ServerDuplexStreamImpl<RequestType, ResponseType>
279
292
return this . call . getDeadline ( ) ;
280
293
}
281
294
295
+ getPath ( ) : string {
296
+ return this . call . getPath ( ) ;
297
+ }
298
+
282
299
// eslint-disable-next-line @typescript-eslint/no-explicit-any
283
300
end ( metadata ?: any ) {
284
301
if ( metadata ) {
@@ -901,6 +918,10 @@ export class Http2ServerCallStream<
901
918
getDeadline ( ) : Deadline {
902
919
return this . deadline ;
903
920
}
921
+
922
+ getPath ( ) : string {
923
+ return this . handler . path ;
924
+ }
904
925
}
905
926
906
927
/* eslint-disable @typescript-eslint/no-explicit-any */
0 commit comments