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功能:返回当前处理器构建器使用的服务提供程序。
prop primaryHandler
cangjie
public mut prop primaryHandler: HttpMessageHandler功能:获取或设置主 HTTP 消息处理器。
prop additionalHandlers
cangjie
public prop additionalHandlers: List<DelegatingHandler>功能:返回附加消息处理器集合。
类型:List<DelegatingHandler>
func build()
cangjie
public func build(): HttpMessageHandler功能:构建 HTTP 消息处理器管道。
返回值:
- HttpMessageHandler - 返回构建得到的 HTTP 消息处理器。