HtmlrenderWebkitHeadlessProtoReferencedResource

AI Overview😉

  • Potential purpose of module: This module, ReferencedResource, appears to be responsible for tracking and storing information about resources (e.g., images, scripts, stylesheets) referenced by a webpage during rendering. It collects data on the resource's URL, content type, HTTP headers, fetch status, and other metadata.
  • Impact on search results: The data collected by this module could be used to improve search result rankings by analyzing a webpage's resource usage, loading times, and content quality. For example, a webpage with slow-loading or excessive resources might be penalized in search rankings, while a webpage with efficient resource usage and fast loading times might be rewarded.
  • Optimization strategies: To be more favorable to this function, a website could optimize its resource usage by:
    • Minimizing the number of HTTP requests
    • Optimizing image and script loading times
    • Using efficient content delivery networks (CDNs)
    • Ensuring proper HTTP header configurations
    • Reducing the overall payload size of resources

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoReferencedResource (google_api_content_warehouse v0.4.0)

ReferencedResource contains an entry per url referenced by the browser while rendering a document. Next tag available: 20

Attributes

  • canceled (type: boolean(), default: nil) - True if this fetch was canceled due to render server policy. e.g. the page exceeded the fetch budget or an extension canceled the fetch.
  • contentType (type: integer(), default: nil) - Content type of this resource (webutil/http/content-type.h). The content type is from guess based on the file extension, any mime type in http headers at the beginning of the content, any content-disposition http header, and the content body itself. Note: the content type defined in webutil/http/content-type.proto is incomplete. If you are interested in missing types, please update the enum and the logic of content type detection.
  • domTreeNodeIndex (type: list(integer()), default: nil) - DOMTreeNode index which has the url as one of its attributes specified using either src, href or background attributes. src attribute applies to img, script, frame and iframe nodes, href applies to link nodes and background applies to body node. It is possible for a url to be referenced by multiple DOM nodes. For e.g. an tag with the same src attribute can occur in multiple places within a document. It is possible for a url to not have any DOM node reference. For example, redirects don't have DOM tree nodes.
  • failedHttpAccessControlCheck (type: boolean(), default: nil) - True when a HTTP request succeeded but the resource was not made accessible to script due to a HTTP Access Control (CORS) failure. This field is not implemented on Chromium.
  • fetchSourceInfo (type: list(GoogleApi.ContentWarehouse.V1.Model.WirelessTranscoderFetchFetchSourceInfo.t), default: nil) - Where this resource comes from.
  • fetchStatus (type: String.t, default: nil) - The FetchStatus returned by the fetcher. Values are taken from wireless_transcoder_fetch.FetchConstants.FetchStatus in fetch_service.proto. The default value is SUCCESS(0).
  • httpHeader (type: list(GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoReferencedResourceHttpHeader.t), default: nil) - HTTP headers from the fetcher.
  • httpResponseCode (type: integer(), default: nil) - HTTP response code if we had tried to fetch the url. Absence of this field indicates either we have not tried to fetch the url or the fetcher never got back to us with any response.
  • metadata (type: list(GoogleApi.ContentWarehouse.V1.Model.WirelessTranscoderFetchFetchMetadata.t), default: nil) -
  • postData (type: String.t, default: nil) - The post_data field is only valid when the HTTP request method is POST.
  • redirectTarget (type: String.t, default: nil) - If the http_response_code is a HTTP redirect, the redirect target will be stored here.
  • referencedResourceContentIndex (type: integer(), default: nil) - Indicates which referenced_resource_content (in RenderResponse) this RefencedResource points to. This field will be set only when there is referenced_resource_content for this RefencedResource in RenderResponse.
  • requestHeader (type: list(GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoReferencedResourceHttpHeader.t), default: nil) - Only necessary headers are recorded. See google3/htmlrender/webkit_headless/resource_key.cc
  • requestMethod (type: integer(), default: nil) - The HTTP request method (GET, HEAD, POST, etc) used for this request. Values are taken from the HTTPHeaders::Protocol enum in webutil/http/httputils.h. HTTPHeaders::PROTO_GET
  • styleIndex (type: list(integer()), default: nil) - style index which has the url specified using either the background-image property or the list-style-image property.
  • synchronouslyFetched (type: boolean(), default: nil) - Whether it is synchronously fetched.
  • timing (type: list(GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoReferencedResourceFetchTiming.t), default: nil) -
  • url (type: String.t, default: nil) - Does not have a #fragment.
  • webkitMetadata (type: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoWebKitFetchMetadata.t, default: nil) - Additional information webkit about this resource. e.g. intended usage

Summary

Types

t()

Functions

decode(value, options)

Unwrap a decoded JSON object into its complex fields.

Types

Link to this type

t()

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoReferencedResource{
    canceled: boolean() | nil,
    contentType: integer() | nil,
    domTreeNodeIndex: [integer()] | nil,
    failedHttpAccessControlCheck: boolean() | nil,
    fetchSourceInfo:
      [
        GoogleApi.ContentWarehouse.V1.Model.WirelessTranscoderFetchFetchSourceInfo.t()
      ]
      | nil,
    fetchStatus: String.t() | nil,
    httpHeader:
      [
        GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoReferencedResourceHttpHeader.t()
      ]
      | nil,
    httpResponseCode: integer() | nil,
    metadata:
      [
        GoogleApi.ContentWarehouse.V1.Model.WirelessTranscoderFetchFetchMetadata.t()
      ]
      | nil,
    postData: String.t() | nil,
    redirectTarget: String.t() | nil,
    referencedResourceContentIndex: integer() | nil,
    requestHeader:
      [
        GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoReferencedResourceHttpHeader.t()
      ]
      | nil,
    requestMethod: integer() | nil,
    styleIndex: [integer()] | nil,
    synchronouslyFetched: boolean() | nil,
    timing:
      [
        GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoReferencedResourceFetchTiming.t()
      ]
      | nil,
    url: String.t() | nil,
    webkitMetadata:
      GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoWebKitFetchMetadata.t()
      | nil
  }

Functions

Link to this function

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.