public interface GrpcServerResponse<Req,Resp> extends GrpcWriteStream<Resp>
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
acceptedEncodings() |
GrpcServerResponse<Req,Resp> |
drainHandler(Handler<Void> handler) |
GrpcServerResponse<Req,Resp> |
encoding(String encoding) |
GrpcServerResponse<Req,Resp> |
exceptionHandler(Handler<Throwable> handler) |
default Future<Void> |
send(ReadStream<Resp> body) |
default Future<Void> |
send(Resp item) |
GrpcServerResponse<Req,Resp> |
setWriteQueueMaxSize(int maxSize) |
GrpcServerResponse<Req,Resp> |
status(GrpcStatus status)
Set the grpc status response
|
GrpcServerResponse<Req,Resp> |
statusMessage(String msg)
Set the grpc status response message
|
MultiMap |
trailers() |
Future<Void> |
writeHead()
Send the response headers.
|
cancel, endMessage, headers, writeMessageend, end, end, end, write, write, writeQueueFullGrpcServerResponse<Req,Resp> status(GrpcStatus status)
status - the statusGrpcServerResponse<Req,Resp> statusMessage(String msg)
msg - the messageGrpcServerResponse<Req,Resp> encoding(String encoding)
encoding in interface GrpcWriteStream<Resp>Set<String> acceptedEncodings()
identity should not be part of this set.
This can be used to set the response encoding to ensure the client will accept
the encoding. This is a glorified wrapper for the grpc-accept-encoding header.GrpcServerResponse<Req,Resp> exceptionHandler(Handler<Throwable> handler)
exceptionHandler in interface GrpcWriteStream<Resp>exceptionHandler in interface StreamBaseexceptionHandler in interface WriteStream<Resp>GrpcServerResponse<Req,Resp> setWriteQueueMaxSize(int maxSize)
setWriteQueueMaxSize in interface GrpcWriteStream<Resp>setWriteQueueMaxSize in interface WriteStream<Resp>GrpcServerResponse<Req,Resp> drainHandler(Handler<Void> handler)
drainHandler in interface GrpcWriteStream<Resp>drainHandler in interface WriteStream<Resp>Future<Void> writeHead()
default Future<Void> send(ReadStream<Resp> body)
Copyright © 2026 Eclipse. All rights reserved.