.. index:: pair: struct; EE::UI::WebResourceRequest .. _doxid-struct_e_e_1_1_u_i_1_1_web_resource_request: struct EE::UI::WebResourceRequest ================================= .. toctree:: :hidden: Overview ~~~~~~~~ Complete input required to identify and fetch one web resource variant. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct WebResourceRequest { // typedefs typedef std::function)> :ref:`CompletionDispatcher`; // fields :ref:`Network::URI` :ref:`uri`; :ref:`WebResourceKind` :ref:`kind` { :ref:`WebResourceKind::Document` }; :ref:`Network::Http::Request::Method` :ref:`method` { Network::Http::Request::Method::Get }; :ref:`Network::Http::Request::FieldTable` :ref:`headers`; std::string :ref:`body`; :ref:`System::Time` :ref:`timeout` { :ref:`System::Seconds`(5) }; bool :ref:`validateCertificate` { true }; :ref:`Network::URI` :ref:`proxy`; bool :ref:`followRedirect` { true }; bool :ref:`clampToEdge` { true }; bool :ref:`mipmaps` { false }; bool :ref:`compressTexture` { false }; :ref:`Float` :ref:`svgScale` { 1.f }; :ref:`CompletionDispatcher` :ref:`completionDispatcher`; }; .. _details-struct_e_e_1_1_u_i_1_1_web_resource_request: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Complete input required to identify and fetch one web resource variant. Cache identity includes the partition, canonical URI, resource kind, method, non-navigation headers, body, and image decode options. Cookie and Referer are deliberately excluded from entry identity: the partition isolates cookie contexts, while these two values naturally change during navigation. They are still sent with the HTTP request. Transport policy such as timeout, proxy, and completionDispatcher controls a fetch but does not describe the resulting resource and is therefore not part of cache identity. Typedefs -------- .. index:: pair: typedef; CompletionDispatcher .. _doxid-struct_e_e_1_1_u_i_1_1_web_resource_request_1ae47d838841e93f7a4f326ea2affcd43d: .. ref-code-block:: cpp :class: doxyrest-title-code-block typedef std::function)> CompletionDispatcher Dispatches a completion function to the thread on which it is safe to finalize a resource. Fields ------ .. index:: pair: variable; uri .. _doxid-struct_e_e_1_1_u_i_1_1_web_resource_request_1a39afcd7467e9bbafa75a012ade053ec3: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Network::URI` uri Absolute URI to fetch. Fragments are removed and the URI is normalized for cache lookup. .. index:: pair: variable; kind .. _doxid-struct_e_e_1_1_u_i_1_1_web_resource_request_1ae2f98ef76a54c4fa179e5e2be9dca02b: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`WebResourceKind` kind { :ref:`WebResourceKind::Document` } Semantic resource type. .. index:: pair: variable; method .. _doxid-struct_e_e_1_1_u_i_1_1_web_resource_request_1a8c9a3fe77c62ab961cddd470ea7bbf91: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Network::Http::Request::Method` method { Network::Http::Request::Method::Get } HTTP method. The method is part of cache identity. .. index:: pair: variable; headers .. _doxid-struct_e_e_1_1_u_i_1_1_web_resource_request_1a61793bcb3c559effbffda05c4245bef3: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Network::Http::Request::FieldTable` headers HTTP request headers. See the type documentation for cache-key rules. .. index:: pair: variable; body .. _doxid-struct_e_e_1_1_u_i_1_1_web_resource_request_1abd9304a6af81ca11d8617abe39017f66: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::string body HTTP request body. The complete body is part of cache identity. .. index:: pair: variable; timeout .. _doxid-struct_e_e_1_1_u_i_1_1_web_resource_request_1a85ba97c5a807db4a0ee7d3b388ff81b6: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`System::Time` timeout { :ref:`System::Seconds`(5) } Maximum duration allowed for the HTTP request. .. index:: pair: variable; validateCertificate .. _doxid-struct_e_e_1_1_u_i_1_1_web_resource_request_1a0a1a958d17b9bc30b0ae2cd06bb2cd2e: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool validateCertificate { true } Whether HTTPS certificates must be validated. .. index:: pair: variable; proxy .. _doxid-struct_e_e_1_1_u_i_1_1_web_resource_request_1ab087db100beb6cf8ed6eb833a7471107: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Network::URI` proxy Optional HTTP proxy URI. An empty URI uses a direct connection. .. index:: pair: variable; followRedirect .. _doxid-struct_e_e_1_1_u_i_1_1_web_resource_request_1a99e3cb6444fc70028bf694ebb59f2ad6: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool followRedirect { true } Whether HTTP redirects should be followed. .. index:: pair: variable; clampToEdge .. _doxid-struct_e_e_1_1_u_i_1_1_web_resource_request_1a9989ea19c5d5a4146e5492b0e47d888a: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool clampToEdge { true } Image-only texture wrapping policy. True selects ClampToEdge. .. index:: pair: variable; mipmaps .. _doxid-struct_e_e_1_1_u_i_1_1_web_resource_request_1a9c79400331789a45cf85b715ec1011d0: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool mipmaps { false } Image-only option controlling mipmap generation. .. index:: pair: variable; compressTexture .. _doxid-struct_e_e_1_1_u_i_1_1_web_resource_request_1a8e9c76547b48df5cc0f989c4804de2af: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool compressTexture { false } Image-only option requesting texture compression. .. index:: pair: variable; svgScale .. _doxid-struct_e_e_1_1_u_i_1_1_web_resource_request_1a4b761a974094d589bc5d6b86b1c256cb: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Float` svgScale { 1.f } Image-only SVG rasterization scale. .. index:: pair: variable; completionDispatcher .. _doxid-struct_e_e_1_1_u_i_1_1_web_resource_request_1aaeef020bc271b3de53319dc5fa7459c0: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`CompletionDispatcher` completionDispatcher Image-only completion dispatcher. Image decode/upload completion must execute where a graphics context is current. This policy is not part of cache identity and only the request that starts a coalesced load supplies it.