registerFunction<TResponse extends Object?, TRequest extends Request<TResponse>> method

void registerFunction<TResponse extends Object?, TRequest extends Request<TResponse>>(
  1. PipelineHandler<TResponse, TRequest> handler
)

Registers the given handler.

This will create a function based PipelineBehavior.

See PipelineBehavior.function.

Implementation

void registerFunction<TResponse extends Object?,
    TRequest extends Request<TResponse>>(
  PipelineHandler<TResponse, TRequest> handler,
) {
  register(PipelineBehavior.function(handler));
}