Class Response
java.lang.Object
org.openqa.selenium.devtools.v85.network.model.Response
HTTP response data.
-
Constructor Summary
ConstructorsConstructorDescriptionResponse
(String url, Integer status, String statusText, Headers headers, Optional<String> headersText, String mimeType, Optional<Headers> requestHeaders, Optional<String> requestHeadersText, Boolean connectionReused, Number connectionId, Optional<String> remoteIPAddress, Optional<Integer> remotePort, Optional<Boolean> fromDiskCache, Optional<Boolean> fromServiceWorker, Optional<Boolean> fromPrefetchCache, Number encodedDataLength, Optional<ResourceTiming> timing, Optional<ServiceWorkerResponseSource> serviceWorkerResponseSource, Optional<TimeSinceEpoch> responseTime, Optional<String> cacheStorageCacheName, Optional<String> protocol, SecurityState securityState, Optional<SecurityDetails> securityDetails) -
Method Summary
Modifier and TypeMethodDescriptionCache Storage Cache Name.Physical connection id that was actually used for this request.Specifies whether physical connection was actually reused for this request.Total number of bytes received for this request so far.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.HTTP response headers.HTTP response headers text.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.HTTP request headers text.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.
-
Constructor Details
-
Response
public Response(String url, Integer status, String statusText, Headers headers, Optional<String> headersText, String mimeType, Optional<Headers> requestHeaders, Optional<String> requestHeadersText, Boolean connectionReused, Number connectionId, Optional<String> remoteIPAddress, Optional<Integer> remotePort, Optional<Boolean> fromDiskCache, Optional<Boolean> fromServiceWorker, Optional<Boolean> fromPrefetchCache, Number encodedDataLength, Optional<ResourceTiming> timing, Optional<ServiceWorkerResponseSource> serviceWorkerResponseSource, Optional<TimeSinceEpoch> responseTime, Optional<String> cacheStorageCacheName, Optional<String> protocol, SecurityState securityState, Optional<SecurityDetails> securityDetails)
-
-
Method Details
-
getUrl
Response URL. This URL can be different from CachedResource.url in case of redirect. -
getStatus
HTTP response status code. -
getStatusText
HTTP response status text. -
getHeaders
HTTP response headers. -
getHeadersText
HTTP response headers text. -
getMimeType
Resource mimeType as determined by the browser. -
getRequestHeaders
Refined HTTP request headers that were actually transmitted over the network. -
getRequestHeadersText
HTTP request headers text. -
getConnectionReused
Specifies whether physical connection was actually reused for this request. -
getConnectionId
Physical connection id that was actually used for this request. -
getRemoteIPAddress
Remote IP address. -
getRemotePort
Remote port. -
getFromDiskCache
Specifies that the request was served from the disk cache. -
getFromServiceWorker
Specifies that the request was served from the ServiceWorker. -
getFromPrefetchCache
Specifies that the request was served from the prefetch cache. -
getEncodedDataLength
Total number of bytes received for this request so far. -
getTiming
Timing information for the given request. -
getServiceWorkerResponseSource
Response source of response from ServiceWorker. -
getResponseTime
The time at which the returned response was generated. -
getCacheStorageCacheName
Cache Storage Cache Name. -
getProtocol
Protocol used to fetch this request. -
getSecurityState
Security state of the request resource. -
getSecurityDetails
Security details for the request.
-