Package io.webfolder.cdp.type.network
Class Response
java.lang.Object
io.webfolder.cdp.type.network.Response
HTTP response data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCache Storage Cache Name.Physical connection id that was actually used for this request.Total number of bytes received for this request so far.HTTP response headers.Deprecated.Resource mimeType as determined by the browser.Protocol used to fetch this request.Remote IP address.Remote port.Refined HTTP request headers that were actually transmitted over the network.Deprecated.The time at which the returned response was generated.Security details for the request.Security state of the request resource.Response source of response from ServiceWorker.HTTP response status code.HTTP response status text.Timing information for the given request.getUrl()
Response URL.Specifies whether physical connection was actually reused for this request.Specifies that the request was served from the disk cache.Specifies that the request was served from the prefetch cache.Specifies that the request was served from the ServiceWorker.void
setCacheStorageCacheName
(String cacheStorageCacheName) Cache Storage Cache Name.void
setConnectionId
(Double connectionId) Physical connection id that was actually used for this request.void
setConnectionReused
(Boolean connectionReused) Specifies whether physical connection was actually reused for this request.void
setEncodedDataLength
(Double encodedDataLength) Total number of bytes received for this request so far.void
setFromDiskCache
(Boolean fromDiskCache) Specifies that the request was served from the disk cache.void
setFromPrefetchCache
(Boolean fromPrefetchCache) Specifies that the request was served from the prefetch cache.void
setFromServiceWorker
(Boolean fromServiceWorker) Specifies that the request was served from the ServiceWorker.void
setHeaders
(Map<String, Object> headers) HTTP response headers.void
setHeadersText
(String headersText) Deprecated.void
setMimeType
(String mimeType) Resource mimeType as determined by the browser.void
setProtocol
(String protocol) Protocol used to fetch this request.void
setRemoteIPAddress
(String remoteIPAddress) Remote IP address.void
setRemotePort
(Integer remotePort) Remote port.void
setRequestHeaders
(Map<String, Object> requestHeaders) Refined HTTP request headers that were actually transmitted over the network.void
setRequestHeadersText
(String requestHeadersText) Deprecated.void
setResponseTime
(Double responseTime) The time at which the returned response was generated.void
setSecurityDetails
(SecurityDetails securityDetails) Security details for the request.void
setSecurityState
(SecurityState securityState) Security state of the request resource.void
setServiceWorkerResponseSource
(ServiceWorkerResponseSource serviceWorkerResponseSource) Response source of response from ServiceWorker.void
HTTP response status code.void
setStatusText
(String statusText) HTTP response status text.void
setTiming
(ResourceTiming timing) Timing information for the given request.void
Response URL.toString()
-
Constructor Details
-
Response
public Response()
-
-
Method Details
-
getUrl
Response URL. This URL can be different from CachedResource.url in case of redirect. -
setUrl
Response URL. This URL can be different from CachedResource.url in case of redirect. -
getStatus
HTTP response status code. -
setStatus
HTTP response status code. -
getStatusText
HTTP response status text. -
setStatusText
HTTP response status text. -
getHeaders
HTTP response headers. -
setHeaders
HTTP response headers. -
getHeadersText
Deprecated.HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo. -
setHeadersText
Deprecated.HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo. -
getMimeType
Resource mimeType as determined by the browser. -
setMimeType
Resource mimeType as determined by the browser. -
getRequestHeaders
Refined HTTP request headers that were actually transmitted over the network. -
setRequestHeaders
Refined HTTP request headers that were actually transmitted over the network. -
getRequestHeadersText
Deprecated.HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo. -
setRequestHeadersText
Deprecated.HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo. -
isConnectionReused
Specifies whether physical connection was actually reused for this request. -
setConnectionReused
Specifies whether physical connection was actually reused for this request. -
getConnectionId
Physical connection id that was actually used for this request. -
setConnectionId
Physical connection id that was actually used for this request. -
getRemoteIPAddress
Remote IP address. -
setRemoteIPAddress
Remote IP address. -
getRemotePort
Remote port. -
setRemotePort
Remote port. -
isFromDiskCache
Specifies that the request was served from the disk cache. -
setFromDiskCache
Specifies that the request was served from the disk cache. -
isFromServiceWorker
Specifies that the request was served from the ServiceWorker. -
setFromServiceWorker
Specifies that the request was served from the ServiceWorker. -
isFromPrefetchCache
Specifies that the request was served from the prefetch cache. -
setFromPrefetchCache
Specifies that the request was served from the prefetch cache. -
getEncodedDataLength
Total number of bytes received for this request so far. -
setEncodedDataLength
Total number of bytes received for this request so far. -
getTiming
Timing information for the given request. -
setTiming
Timing information for the given request. -
getServiceWorkerResponseSource
Response source of response from ServiceWorker. -
setServiceWorkerResponseSource
Response source of response from ServiceWorker. -
getResponseTime
The time at which the returned response was generated. -
setResponseTime
The time at which the returned response was generated. -
getCacheStorageCacheName
Cache Storage Cache Name. -
setCacheStorageCacheName
Cache Storage Cache Name. -
getProtocol
Protocol used to fetch this request. -
setProtocol
Protocol used to fetch this request. -
getSecurityState
Security state of the request resource. -
setSecurityState
Security state of the request resource. -
getSecurityDetails
Security details for the request. -
setSecurityDetails
Security details for the request. -
toString
-