|
|
|
@ -158,8 +158,7 @@ class ServicerContext(Generic[RequestType, ResponseType], abc.ABC): |
|
|
|
|
""" |
|
|
|
|
|
|
|
|
|
@abc.abstractmethod |
|
|
|
|
async def send_initial_metadata(self, |
|
|
|
|
initial_metadata: Metadata) -> None: |
|
|
|
|
async def send_initial_metadata(self, initial_metadata: Metadata) -> None: |
|
|
|
|
"""Sends the initial metadata value to the client. |
|
|
|
|
|
|
|
|
|
This method need not be called by implementations if they have no |
|
|
|
@ -191,8 +190,7 @@ class ServicerContext(Generic[RequestType, ResponseType], abc.ABC): |
|
|
|
|
""" |
|
|
|
|
|
|
|
|
|
@abc.abstractmethod |
|
|
|
|
async def set_trailing_metadata(self, |
|
|
|
|
trailing_metadata: Metadata) -> None: |
|
|
|
|
async def set_trailing_metadata(self, trailing_metadata: Metadata) -> None: |
|
|
|
|
"""Sends the trailing metadata for the RPC. |
|
|
|
|
|
|
|
|
|
This method need not be called by implementations if they have no |
|
|
|
|