Class Response
java.lang.Object
org.openqa.selenium.devtools.v141.network.model.Response
HTTP response data.
-
Constructor Summary
ConstructorsConstructorDescriptionResponse(String url, Integer status, String statusText, Headers headers, Optional<String> headersText, String mimeType, String charset, 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, Optional<Boolean> fromEarlyHints, Optional<ServiceWorkerRouterInfo> serviceWorkerRouterInfo, Number encodedDataLength, Optional<ResourceTiming> timing, Optional<ServiceWorkerResponseSource> serviceWorkerResponseSource, Optional<TimeSinceEpoch> responseTime, Optional<String> cacheStorageCacheName, Optional<String> protocol, Optional<AlternateProtocolUsage> alternateProtocolUsage, SecurityState securityState, Optional<SecurityDetails> securityDetails, Optional<Boolean> isIpProtectionUsed) -
Method Summary
Modifier and TypeMethodDescriptionThe reason why Chrome uses a specific transport protocol for HTTP semantics.Cache Storage Cache Name.Resource charset as determined by the browser (if applicable).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 prefetch cache.Specifies that the request was served from the ServiceWorker.HTTP response headers.Deprecated.Indicates whether the request was sent through IP Protection proxies.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.Information about how ServiceWorker Static Router API was used.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, String charset, 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, Optional<Boolean> fromEarlyHints, Optional<ServiceWorkerRouterInfo> serviceWorkerRouterInfo, Number encodedDataLength, Optional<ResourceTiming> timing, Optional<ServiceWorkerResponseSource> serviceWorkerResponseSource, Optional<TimeSinceEpoch> responseTime, Optional<String> cacheStorageCacheName, Optional<String> protocol, Optional<AlternateProtocolUsage> alternateProtocolUsage, SecurityState securityState, Optional<SecurityDetails> securityDetails, Optional<Boolean> isIpProtectionUsed)
-
-
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
Deprecated.HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo. -
getMimeType
Resource mimeType as determined by the browser. -
getCharset
Resource charset as determined by the browser (if applicable). -
getRequestHeaders
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. -
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. -
getFromEarlyHints
Specifies that the request was served from the prefetch cache. -
getServiceWorkerRouterInfo
Information about how ServiceWorker Static Router API was used. If this field is set with `matchedSourceType` field, a matching rule is found. If this field is set without `matchedSource`, no matching rule is found. Otherwise, the API is not used. -
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. -
getAlternateProtocolUsage
The reason why Chrome uses a specific transport protocol for HTTP semantics. -
getSecurityState
Security state of the request resource. -
getSecurityDetails
Security details for the request. -
getIsIpProtectionUsed
Indicates whether the request was sent through IP Protection proxies. If set to true, the request used the IP Protection privacy feature.
-