registerFunction<TResponse extends Object?, TRequest extends Request<TResponse> > method
void
registerFunction<TResponse extends Object?, TRequest extends Request<TResponse> >(
- PipelineHandler<
TResponse, TRequest> handler
Registers the given handler
.
This will create a function based PipelineBehavior.
Implementation
void registerFunction<TResponse extends Object?,
TRequest extends Request<TResponse>>(
PipelineHandler<TResponse, TRequest> handler,
) {
register(PipelineBehavior.function(handler));
}