Skip to content

class HttpMessageHandlerBuilder

cangjie
public abstract class HttpMessageHandlerBuilder

功能:定义 HTTP 消息处理器管道构建器的抽象基类。

成员概览

成员功能
prop name获取或设置当前处理器构建器名称。
prop services返回当前处理器构建器使用的服务提供程序。
prop primaryHandler获取或设置主 HTTP 消息处理器。
prop additionalHandlers返回附加消息处理器集合。
func build()构建 HTTP 消息处理器管道。

prop name

cangjie
public mut prop name: ?String

功能:获取或设置当前处理器构建器名称。

类型:?String

prop services

cangjie
public prop services: IServiceProvider

功能:返回当前处理器构建器使用的服务提供程序。

类型:IServiceProvider

prop primaryHandler

cangjie
public mut prop primaryHandler: HttpMessageHandler

功能:获取或设置主 HTTP 消息处理器。

类型:HttpMessageHandler

prop additionalHandlers

cangjie
public prop additionalHandlers: List<DelegatingHandler>

功能:返回附加消息处理器集合。

类型:List<DelegatingHandler>

func build()

cangjie
public func build(): HttpMessageHandler

功能:构建 HTTP 消息处理器管道。

返回值: