-
public final class ResponseHTTP response data.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringurlprivate final Integerstatusprivate final StringstatusTextprivate final JsonElementheadersprivate final StringheadersTextprivate final StringmimeTypeprivate final JsonElementrequestHeadersprivate final StringrequestHeadersTextprivate final BooleanconnectionReusedprivate final DoubleconnectionIdprivate final StringremoteIPAddressprivate final IntegerremotePortprivate final BooleanfromDiskCacheprivate final BooleanfromServiceWorkerprivate final BooleanfromPrefetchCacheprivate final DoubleencodedDataLengthprivate final ResourceTimingtimingprivate final ServiceWorkerResponseSourceserviceWorkerResponseSourceprivate final DoubleresponseTimeprivate final StringcacheStorageCacheNameprivate final Stringprotocolprivate final SecurityStatesecurityStateprivate final SecurityDetailssecurityDetails
-
Constructor Summary
Constructors Constructor Description Response(String url, Integer status, String statusText, JsonElement headers, String headersText, String mimeType, JsonElement requestHeaders, String requestHeadersText, Boolean connectionReused, Double connectionId, String remoteIPAddress, Integer remotePort, Boolean fromDiskCache, Boolean fromServiceWorker, Boolean fromPrefetchCache, Double encodedDataLength, ResourceTiming timing, ServiceWorkerResponseSource serviceWorkerResponseSource, Double responseTime, String cacheStorageCacheName, String protocol, SecurityState securityState, SecurityDetails securityDetails)
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final Integercomponent2()final Stringcomponent3()final JsonElementcomponent4()final Stringcomponent5()final Stringcomponent6()final JsonElementcomponent7()final Stringcomponent8()final Booleancomponent9()final Doublecomponent10()final Stringcomponent11()final Integercomponent12()final Booleancomponent13()final Booleancomponent14()final Booleancomponent15()final Doublecomponent16()final ResourceTimingcomponent17()final ServiceWorkerResponseSourcecomponent18()final Doublecomponent19()final Stringcomponent20()final Stringcomponent21()final SecurityStatecomponent22()final SecurityDetailscomponent23()final Responsecopy(String url, Integer status, String statusText, JsonElement headers, String headersText, String mimeType, JsonElement requestHeaders, String requestHeadersText, Boolean connectionReused, Double connectionId, String remoteIPAddress, Integer remotePort, Boolean fromDiskCache, Boolean fromServiceWorker, Boolean fromPrefetchCache, Double encodedDataLength, ResourceTiming timing, ServiceWorkerResponseSource serviceWorkerResponseSource, Double responseTime, String cacheStorageCacheName, String protocol, SecurityState securityState, SecurityDetails securityDetails)final StringgetUrl()Response URL. final IntegergetStatus()HTTP response status code. final StringgetStatusText()HTTP response status text. final JsonElementgetHeaders()HTTP response headers. final StringgetHeadersText()HTTP response headers text. final StringgetMimeType()Resource mimeType as determined by the browser. final JsonElementgetRequestHeaders()Refined HTTP request headers that were actually transmitted over the network. final StringgetRequestHeadersText()HTTP request headers text. final BooleangetConnectionReused()Specifies whether physical connection was actually reused for this request. final DoublegetConnectionId()Physical connection id that was actually used for this request. final StringgetRemoteIPAddress()Remote IP address. final IntegergetRemotePort()Remote port. final BooleangetFromDiskCache()Specifies that the request was served from the disk cache. final BooleangetFromServiceWorker()Specifies that the request was served from the ServiceWorker. final BooleangetFromPrefetchCache()Specifies that the request was served from the prefetch cache. final DoublegetEncodedDataLength()Total number of bytes received for this request so far. final ResourceTiminggetTiming()Timing information for the given request. final ServiceWorkerResponseSourcegetServiceWorkerResponseSource()Response source of response from ServiceWorker. final DoublegetResponseTime()The time at which the returned response was generated. final StringgetCacheStorageCacheName()Cache Storage Cache Name. final StringgetProtocol()Protocol used to fetch this request. final SecurityStategetSecurityState()Security state of the request resource. final SecurityDetailsgetSecurityDetails()Security details for the request. -
-
Constructor Detail
-
Response
Response(String url, Integer status, String statusText, JsonElement headers, String headersText, String mimeType, JsonElement requestHeaders, String requestHeadersText, Boolean connectionReused, Double connectionId, String remoteIPAddress, Integer remotePort, Boolean fromDiskCache, Boolean fromServiceWorker, Boolean fromPrefetchCache, Double encodedDataLength, ResourceTiming timing, ServiceWorkerResponseSource serviceWorkerResponseSource, Double responseTime, String cacheStorageCacheName, String protocol, SecurityState securityState, SecurityDetails securityDetails)
-
-
Method Detail
-
component1
final String component1()
-
component2
final Integer component2()
-
component3
final String component3()
-
component4
final JsonElement component4()
-
component5
final String component5()
-
component6
final String component6()
-
component7
final JsonElement component7()
-
component8
final String component8()
-
component9
final Boolean component9()
-
component10
final Double component10()
-
component11
final String component11()
-
component12
final Integer component12()
-
component13
final Boolean component13()
-
component14
final Boolean component14()
-
component15
final Boolean component15()
-
component16
final Double component16()
-
component17
final ResourceTiming component17()
-
component18
final ServiceWorkerResponseSource component18()
-
component19
final Double component19()
-
component20
final String component20()
-
component21
final String component21()
-
component22
final SecurityState component22()
-
component23
final SecurityDetails component23()
-
copy
final Response copy(String url, Integer status, String statusText, JsonElement headers, String headersText, String mimeType, JsonElement requestHeaders, String requestHeadersText, Boolean connectionReused, Double connectionId, String remoteIPAddress, Integer remotePort, Boolean fromDiskCache, Boolean fromServiceWorker, Boolean fromPrefetchCache, Double encodedDataLength, ResourceTiming timing, ServiceWorkerResponseSource serviceWorkerResponseSource, Double responseTime, String cacheStorageCacheName, String protocol, SecurityState securityState, SecurityDetails securityDetails)
-
getUrl
final String getUrl()
Response URL. This URL can be different from CachedResource.url in case of redirect.
-
getStatusText
final String getStatusText()
HTTP response status text.
-
getHeaders
final JsonElement getHeaders()
HTTP response headers.
-
getHeadersText
final String getHeadersText()
HTTP response headers text.
-
getMimeType
final String getMimeType()
Resource mimeType as determined by the browser.
-
getRequestHeaders
final JsonElement getRequestHeaders()
Refined HTTP request headers that were actually transmitted over the network.
-
getRequestHeadersText
final String getRequestHeadersText()
HTTP request headers text.
-
getConnectionReused
final Boolean getConnectionReused()
Specifies whether physical connection was actually reused for this request.
-
getConnectionId
final Double getConnectionId()
Physical connection id that was actually used for this request.
-
getRemoteIPAddress
final String getRemoteIPAddress()
Remote IP address.
-
getRemotePort
final Integer getRemotePort()
Remote port.
-
getFromDiskCache
final Boolean getFromDiskCache()
Specifies that the request was served from the disk cache.
-
getFromServiceWorker
final Boolean getFromServiceWorker()
Specifies that the request was served from the ServiceWorker.
-
getFromPrefetchCache
final Boolean getFromPrefetchCache()
Specifies that the request was served from the prefetch cache.
-
getEncodedDataLength
final Double getEncodedDataLength()
Total number of bytes received for this request so far.
-
getTiming
final ResourceTiming getTiming()
Timing information for the given request.
-
getServiceWorkerResponseSource
final ServiceWorkerResponseSource getServiceWorkerResponseSource()
Response source of response from ServiceWorker.
-
getResponseTime
final Double getResponseTime()
The time at which the returned response was generated.
-
getCacheStorageCacheName
final String getCacheStorageCacheName()
Cache Storage Cache Name.
-
getProtocol
final String getProtocol()
Protocol used to fetch this request.
-
getSecurityState
final SecurityState getSecurityState()
Security state of the request resource.
-
getSecurityDetails
final SecurityDetails getSecurityDetails()
Security details for the request.
-
-
-
-