Skip to content

interface IPipelineHandler

cangjie
public interface IPipelineHandler

功能:定义请求处理管道行为接口。

成员概览

成员功能
func handle(Any, RequestDelegate)在请求处理管道中处理当前请求。

func handle(Any, RequestDelegate)

cangjie
func handle(request: Any, next: RequestDelegate): Any

功能:在请求处理管道中处理当前请求。

参数:

  • request: Any - 当前要处理的请求对象。
  • next: RequestDelegate - 管道中的下一步委托。

返回值:

  • Any - 当前管道节点或后续节点返回的结果。