Interface ResponseMetadataHandler (2.23.1)

public interface ResponseMetadataHandler

An interface to handle metadata returned from an RPC. A ResponseMetadataHandler is used by the GrpcMetadataHandlerInterceptor class to provide custom handling of the returned headers and trailers.

Methods

onHeaders(Metadata metadata)

public abstract void onHeaders(Metadata metadata)

Handle the headers returned by an RPC.

Parameter
NameDescription
metadataio.grpc.Metadata

onTrailers(Metadata metadata)

public abstract void onTrailers(Metadata metadata)

Handle the trailers returned by an RPC.

Parameter
NameDescription
metadataio.grpc.Metadata