/base/web/webview/ohos_nweb/include/ |
H A D | nweb_cache_options_impl.h | 24 NWebCacheOptionsImpl(const std::map<std::string, std::string> &responseHeaders) in NWebCacheOptionsImpl() argument 25 : responseHeaders_(responseHeaders) {} in NWebCacheOptionsImpl()
|
/base/web/webview/interfaces/kits/napi/webviewcontroller/ |
H A D | webview_controller.cpp | 1614 std::map<std::string, std::string> responseHeaders; in ParseCacheOptions() local 1615 auto defaultCacheOptions = std::make_shared<NWebCacheOptionsImpl>(responseHeaders); in ParseCacheOptions() 1618 if (napi_get_named_property(env, value, "responseHeaders", &responseHeadersValue) != napi_ok) { in ParseCacheOptions() 1619 WVLOG_D("PrecompileJavaScript: cannot get 'responseHeaders' of CacheOptions."); in ParseCacheOptions() 1623 if (!ParseResponseHeaders(env, responseHeadersValue, responseHeaders)) { in ParseCacheOptions() 1624 WVLOG_D("PrecompileJavaScript: parse 'responseHeaders' of CacheOptions failed. use default options"); in ParseCacheOptions() 1628 return std::make_shared<NWebCacheOptionsImpl>(responseHeaders); in ParseCacheOptions() 1669 std::map<std::string, std::string> &responseHeaders) const in ParseResponseHeaders() 1698 responseHeaders[keyString] = valueString; in ParseResponseHeaders()
|
H A D | webview_controller.h | 345 std::map<std::string, std::string> &responseHeaders) const;
|
H A D | napi_webview_controller.h | 63 napi_value responseHeaders; member
|
H A D | napi_webview_controller.cpp | 5900 (napi_get_named_property(env, obj, "responseHeaders", &headersObj) != napi_ok) || in AddResourcesToMemoryCache() 5910 resourceValue.responseHeaders = headersObj; in AddResourcesToMemoryCache() 5945 std::map<std::string, std::string> responseHeaders; in AddResourceItemToMemoryCache() local 5946 if (!webviewController->ParseResponseHeaders(env, resourceValue.responseHeaders, responseHeaders)) { in AddResourceItemToMemoryCache() 5947 WVLOG_E("BusinessError: 401. The type of 'responseHeaders' must be Array of 'WebHeader'."); in AddResourceItemToMemoryCache() 5959 webviewController->InjectOfflineResource(urlList, resource, responseHeaders, type); in AddResourceItemToMemoryCache()
|
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/include/ |
H A D | ark_web_nweb.h | 1193 const ArkWebUint8Vector& resource, const ArkWebStringMap& responseHeaders, const int type) = 0;
|
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/ |
H A D | ark_web_nweb_impl.h | 1034 const ArkWebStringMap& responseHeaders, const int type) override;
|
H A D | ark_web_nweb_impl.cpp | 939 const ArkWebUint8Vector& resource, const ArkWebStringMap& responseHeaders, const int type) in InjectOfflineResource() 943 ArkWebStringMapStructToClass(responseHeaders), type); in InjectOfflineResource() 938 InjectOfflineResource(const ArkWebString& url, const ArkWebString& origin, const ArkWebUint8Vector& resource, const ArkWebStringMap& responseHeaders, const int type) InjectOfflineResource() argument
|
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/ |
H A D | ark_web_nweb_wrapper.cpp | 1077 const std::vector<uint8_t>& resource, const std::map<std::string, std::string>& responseHeaders, const int type) in InjectOfflineResource() 1082 auto responseHeadersMap = ArkWebStringMapClassToStruct(responseHeaders); in InjectOfflineResource() 1076 InjectOfflineResource(const std::string& url, const std::string& origin, const std::vector<uint8_t>& resource, const std::map<std::string, std::string>& responseHeaders, const int type) InjectOfflineResource() argument
|
H A D | ark_web_nweb_wrapper.h | 1044 const std::map<std::string, std::string>& responseHeaders, const int type) override;
|
/base/web/webview/ohos_interface/include/ohos_nweb/ |
H A D | nweb.h | 1233 const std::vector<uint8_t>& resource, const std::map<std::string, std::string>& responseHeaders,
|