合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
| 名称 | 描述 |
|---|---|
| Rcp_SessionType type | 会话类型。 |
| Rcp_InterceptorArray interceptors | 用户自定义的异步拦截器数组。 |
| Rcp_SyncInterceptorArray syncInterceptors | 用户定义的同步拦截器数组。 |
| const char * baseUrl | 基本URL。 |
| Rcp_Headers * headers | 请求标头。 |
| Rcp_RequestCookies * cookies | 请求的Cookie。 |
| Rcp_SessionListener sessionListener | 回调函数,供session监听close()或cancel()事件。 |
| Rcp_Configuration * requestConfiguration | 默认请求配置。这些选项可以通过Request.configuration覆盖。 |
| Rcp_ConnectionConfiguration connectionConfiguration | 连接配置。 |
- const char* Rcp_SessionConfiguration::baseUrl
描述
基本URL。
例如:请求的url为 '?name=value', 基本url是 “https://example.com”,那么最后当请求被送往服务端时的最终url为 “https://example.com?name=value”。
- Rcp_ConnectionConfiguration Rcp_SessionConfiguration::connectionConfiguration
描述
连接配置。
它用于指定此会话中允许的最大同时连接总数以及允许连接到单个主机的最大同时连接数。
- Rcp_RequestCookies* Rcp_SessionConfiguration::cookies
描述
请求的Cookie。
如果调用了HMS_Rcp_Fetch或者HMS_Rcp_FetchSync,在参数中的Rcp_Request中没有Rcp_RequestCookies,则Rcp_SessionConfiguration.cookies将是Rcp_Request.cookies,如果两者都存在,则将它们合并。
- Rcp_Headers* Rcp_SessionConfiguration::headers
描述
请求标头。
如果调用了HMS_Rcp_Fetch或HMS_Rcp_FetchSync,并且Rcp_Request中没有Rcp_Headers,Rcp_SessionConfiguration.headers将是Rcp_Request.headers,如果两者都存在,则将它们合并。
- Rcp_InterceptorArray Rcp_SessionConfiguration::interceptors
描述
用户自定义的异步拦截器数组。
异步拦截器将被制成拦截器链。
输入: [A, B, C, D], 处理逻辑将为 A->B->C->D->defaultHandler。
- Rcp_Configuration* Rcp_SessionConfiguration::requestConfiguration
描述
默认请求配置。这些选项可以通过Request.configuration覆盖。
- Rcp_SessionListener Rcp_SessionConfiguration::sessionListener
描述
回调函数,供session监听close()或cancel()事件。
- Rcp_SyncInterceptorArray Rcp_SessionConfiguration::syncInterceptors
描述
用户定义的同步拦截器数组。
同步拦截器会被做成拦截器链。
输入: [A, B, C, D], 处理逻辑将为 A->B->C->D->defaultHandler。
- Rcp_SessionType Rcp_SessionConfiguration::type
描述
会话类型。
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功