Class Network.Response

    • Constructor Summary

      Constructors 
      Constructor Description
      Response​(String url, int status, String statusText, JsonObject headers, String headersText, String mimeType, JsonObject requestHeaders, String requestHeadersText, boolean connectionReused, Number connectionId, String remoteIPAddress, Integer remotePort, Boolean fromDiskCache, Boolean fromServiceWorker, Boolean fromPrefetchCache, Number encodedDataLength, Network.ResourceTiming timing, String serviceWorkerResponseSource, Number responseTime, String cacheStorageCacheName, String protocol, String securityState, Network.SecurityDetails securityDetails)
      Constructor
      Response​(JsonObject jo)
      JSON Object Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean[] optionals()
      Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Response

        🡅  🡇     🗕  🗗  🗖
        public Response​(java.lang.String url,
                        int status,
                        java.lang.String statusText,
                        JsonObject headers,
                        java.lang.String headersText,
                        java.lang.String mimeType,
                        JsonObject requestHeaders,
                        java.lang.String requestHeadersText,
                        boolean connectionReused,
                        java.lang.Number connectionId,
                        java.lang.String remoteIPAddress,
                        java.lang.Integer remotePort,
                        java.lang.Boolean fromDiskCache,
                        java.lang.Boolean fromServiceWorker,
                        java.lang.Boolean fromPrefetchCache,
                        java.lang.Number encodedDataLength,
                        Network.ResourceTiming timing,
                        java.lang.String serviceWorkerResponseSource,
                        java.lang.Number responseTime,
                        java.lang.String cacheStorageCacheName,
                        java.lang.String protocol,
                        java.lang.String securityState,
                        Network.SecurityDetails securityDetails)
        Constructor
        Parameters:
        url - Response URL. This URL can be different from CachedResource.url in case of redirect.
        status - HTTP response status code.
        statusText - HTTP response status text.
        headers - HTTP response headers.
        headersText - HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo.
        OPTIONAL
        DEPRECATED
        mimeType - Resource mimeType as determined by the browser.
        requestHeaders - Refined HTTP request headers that were actually transmitted over the network.
        OPTIONAL
        requestHeadersText - HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo.
        OPTIONAL
        DEPRECATED
        connectionReused - Specifies whether physical connection was actually reused for this request.
        connectionId - Physical connection id that was actually used for this request.
        remoteIPAddress - Remote IP address.
        OPTIONAL
        remotePort - Remote port.
        OPTIONAL
        fromDiskCache - Specifies that the request was served from the disk cache.
        OPTIONAL
        fromServiceWorker - Specifies that the request was served from the ServiceWorker.
        OPTIONAL
        fromPrefetchCache - Specifies that the request was served from the prefetch cache.
        OPTIONAL
        encodedDataLength - Total number of bytes received for this request so far.
        timing - Timing information for the given request.
        OPTIONAL
        serviceWorkerResponseSource - Response source of response from ServiceWorker.
        OPTIONAL
        responseTime - The time at which the returned response was generated.
        OPTIONAL
        cacheStorageCacheName - Cache Storage Cache Name.
        OPTIONAL
        protocol - Protocol used to fetch this request.
        OPTIONAL
        securityState - Security state of the request resource.
        securityDetails - Security details for the request.
        OPTIONAL
    • Method Detail

      • optionals

        🡅     🗕  🗗  🗖
        public boolean[] optionals()
        Description copied from class: BaseType
        Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding a JsonObject to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array position TRUE.

        NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...
        Specified by:
        optionals in class BaseType
        Returns:
        A boolean[] array whose length is precisely equal to the number of fields in the Java Object.