File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export type ServerSurfaceCall = {
37
37
sendMetadata ( responseMetadata : Metadata ) : void ;
38
38
getDeadline ( ) : Deadline ;
39
39
getPath ( ) : string ;
40
+ getHost ( ) : string ;
40
41
} & EventEmitter ;
41
42
42
43
export type ServerUnaryCall < RequestType , ResponseType > = ServerSurfaceCall & {
@@ -109,6 +110,10 @@ export class ServerUnaryCallImpl<RequestType, ResponseType>
109
110
getPath ( ) : string {
110
111
return this . path ;
111
112
}
113
+
114
+ getHost ( ) : string {
115
+ return this . call . getHost ( ) ;
116
+ }
112
117
}
113
118
114
119
export class ServerReadableStreamImpl < RequestType , ResponseType >
@@ -145,6 +150,10 @@ export class ServerReadableStreamImpl<RequestType, ResponseType>
145
150
getPath ( ) : string {
146
151
return this . path ;
147
152
}
153
+
154
+ getHost ( ) : string {
155
+ return this . call . getHost ( ) ;
156
+ }
148
157
}
149
158
150
159
export class ServerWritableStreamImpl < RequestType , ResponseType >
@@ -190,6 +199,10 @@ export class ServerWritableStreamImpl<RequestType, ResponseType>
190
199
return this . path ;
191
200
}
192
201
202
+ getHost ( ) : string {
203
+ return this . call . getHost ( ) ;
204
+ }
205
+
193
206
_write (
194
207
chunk : ResponseType ,
195
208
encoding : string ,
@@ -259,6 +272,10 @@ export class ServerDuplexStreamImpl<RequestType, ResponseType>
259
272
return this . path ;
260
273
}
261
274
275
+ getHost ( ) : string {
276
+ return this . call . getHost ( ) ;
277
+ }
278
+
262
279
_read ( size : number ) {
263
280
this . call . startRead ( ) ;
264
281
}
You can’t perform that action at this time.
0 commit comments