Class Response

java.lang.Object
io.webfolder.cdp.type.network.Response

public class Response extends Object
HTTP response data
  • Constructor Details

    • Response

      public Response()
  • Method Details

    • getUrl

      public String getUrl()
      Response URL. This URL can be different from CachedResource.url in case of redirect.
    • setUrl

      public void setUrl(String url)
      Response URL. This URL can be different from CachedResource.url in case of redirect.
    • getStatus

      public Integer getStatus()
      HTTP response status code.
    • setStatus

      public void setStatus(Integer status)
      HTTP response status code.
    • getStatusText

      public String getStatusText()
      HTTP response status text.
    • setStatusText

      public void setStatusText(String statusText)
      HTTP response status text.
    • getHeaders

      public Map<String,Object> getHeaders()
      HTTP response headers.
    • setHeaders

      public void setHeaders(Map<String,Object> headers)
      HTTP response headers.
    • getHeadersText

      public String getHeadersText()
      HTTP response headers text.
    • setHeadersText

      public void setHeadersText(String headersText)
      HTTP response headers text.
    • getMimeType

      public String getMimeType()
      Resource mimeType as determined by the browser.
    • setMimeType

      public void setMimeType(String mimeType)
      Resource mimeType as determined by the browser.
    • getRequestHeaders

      public Map<String,Object> getRequestHeaders()
      Refined HTTP request headers that were actually transmitted over the network.
    • setRequestHeaders

      public void setRequestHeaders(Map<String,Object> requestHeaders)
      Refined HTTP request headers that were actually transmitted over the network.
    • getRequestHeadersText

      public String getRequestHeadersText()
      HTTP request headers text.
    • setRequestHeadersText

      public void setRequestHeadersText(String requestHeadersText)
      HTTP request headers text.
    • isConnectionReused

      public Boolean isConnectionReused()
      Specifies whether physical connection was actually reused for this request.
    • setConnectionReused

      public void setConnectionReused(Boolean connectionReused)
      Specifies whether physical connection was actually reused for this request.
    • getConnectionId

      public Double getConnectionId()
      Physical connection id that was actually used for this request.
    • setConnectionId

      public void setConnectionId(Double connectionId)
      Physical connection id that was actually used for this request.
    • getRemoteIPAddress

      public String getRemoteIPAddress()
      Remote IP address.
    • setRemoteIPAddress

      public void setRemoteIPAddress(String remoteIPAddress)
      Remote IP address.
    • getRemotePort

      public Integer getRemotePort()
      Remote port.
    • setRemotePort

      public void setRemotePort(Integer remotePort)
      Remote port.
    • isFromDiskCache

      public Boolean isFromDiskCache()
      Specifies that the request was served from the disk cache.
    • setFromDiskCache

      public void setFromDiskCache(Boolean fromDiskCache)
      Specifies that the request was served from the disk cache.
    • isFromServiceWorker

      public Boolean isFromServiceWorker()
      Specifies that the request was served from the ServiceWorker.
    • setFromServiceWorker

      public void setFromServiceWorker(Boolean fromServiceWorker)
      Specifies that the request was served from the ServiceWorker.
    • isFromPrefetchCache

      public Boolean isFromPrefetchCache()
      Specifies that the request was served from the prefetch cache.
    • setFromPrefetchCache

      public void setFromPrefetchCache(Boolean fromPrefetchCache)
      Specifies that the request was served from the prefetch cache.
    • getEncodedDataLength

      public Double getEncodedDataLength()
      Total number of bytes received for this request so far.
    • setEncodedDataLength

      public void setEncodedDataLength(Double encodedDataLength)
      Total number of bytes received for this request so far.
    • getTiming

      public ResourceTiming getTiming()
      Timing information for the given request.
    • setTiming

      public void setTiming(ResourceTiming timing)
      Timing information for the given request.
    • getServiceWorkerResponseSource

      public ServiceWorkerResponseSource getServiceWorkerResponseSource()
      Response source of response from ServiceWorker.
    • setServiceWorkerResponseSource

      public void setServiceWorkerResponseSource(ServiceWorkerResponseSource serviceWorkerResponseSource)
      Response source of response from ServiceWorker.
    • getResponseTime

      public Double getResponseTime()
      The time at which the returned response was generated.
    • setResponseTime

      public void setResponseTime(Double responseTime)
      The time at which the returned response was generated.
    • getCacheStorageCacheName

      public String getCacheStorageCacheName()
      Cache Storage Cache Name.
    • setCacheStorageCacheName

      public void setCacheStorageCacheName(String cacheStorageCacheName)
      Cache Storage Cache Name.
    • getProtocol

      public String getProtocol()
      Protocol used to fetch this request.
    • setProtocol

      public void setProtocol(String protocol)
      Protocol used to fetch this request.
    • getSecurityState

      public SecurityState getSecurityState()
      Security state of the request resource.
    • setSecurityState

      public void setSecurityState(SecurityState securityState)
      Security state of the request resource.
    • getSecurityDetails

      public SecurityDetails getSecurityDetails()
      Security details for the request.
    • setSecurityDetails

      public void setSecurityDetails(SecurityDetails securityDetails)
      Security details for the request.