#include <userver/ugrpc/server/stream.hpp>
Interface to write server's responses.
This class is not thread-safe.
If any method throws, further methods must not be called on the same stream.
Definition at line 37 of file stream.hpp.
Inheritance diagram for ugrpc::server::Writer< Response >:Public Member Functions | |
| virtual void | Write (Response &response)=0 |
| Write the next outgoing message. | |
| virtual void | Write (Response &response, const grpc::WriteOptions &options)=0 |
| Write the next outgoing message. | |
| virtual void | Write (Response &&response)=0 |
| Write the next outgoing message. | |
| virtual void | Write (Response &&response, const grpc::WriteOptions &options)=0 |
| Write the next outgoing message. | |
|
pure virtual |
Write the next outgoing message.
| response | the next message to write |
| ugrpc::server::RpcError | on an RPC error |
| std::exception | (internal) on error from middlewares |
|
pure virtual |
Write the next outgoing message.
| response | the next message to write |
| options | the write options |
| ugrpc::server::RpcError | on an RPC error |
| std::exception | (internal) on error from middlewares |
|
pure virtual |
Write the next outgoing message.
| response | the next message to write |
| ugrpc::server::RpcError | on an RPC error |
| std::exception | (internal) on error from middlewares |
|
pure virtual |
Write the next outgoing message.
| response | the next message to write |
| options | the write options |
| ugrpc::server::RpcError | on an RPC error |
| std::exception | (internal) on error from middlewares |