Interface ResponseMetadataHandler (2.54.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
Name Description
metadata io.grpc.Metadata

onTrailers(Metadata metadata)

public abstract void onTrailers(Metadata metadata)

Handle the trailers returned by an RPC.

Parameter
Name Description
metadata io.grpc.Metadata