Class Response
HTTP response data.
public sealed record Response : IEquatable<Response>
- Inheritance
-
Response
- Implements
- Inherited Members
Constructors
Response(string, long, string, IReadOnlyDictionary<string, string>, string, string, bool, double, double, SecurityState)
HTTP response data.
public Response(string Url, long Status, string StatusText, IReadOnlyDictionary<string, string> Headers, string MimeType, string Charset, bool ConnectionReused, double ConnectionId, double EncodedDataLength, SecurityState SecurityState)
Parameters
UrlstringResponse URL. This URL can be different from CachedResource.url in case of redirect.
StatuslongHTTP response status code.
StatusTextstringHTTP response status text.
HeadersIReadOnlyDictionary<string, string>HTTP response headers.
MimeTypestringResource mimeType as determined by the browser.
CharsetstringResource charset as determined by the browser (if applicable).
ConnectionReusedboolSpecifies whether physical connection was actually reused for this request.
ConnectionIddoublePhysical connection id that was actually used for this request.
EncodedDataLengthdoubleTotal number of bytes received for this request so far.
SecurityStateSecurityStateSecurity state of the request resource.
Properties
AlternateProtocolUsage
The reason why Chrome uses a specific transport protocol for HTTP semantics.
public AlternateProtocolUsage? AlternateProtocolUsage { get; init; }
Property Value
CacheStorageCacheName
Cache Storage Cache Name.
public string? CacheStorageCacheName { get; init; }
Property Value
Charset
Resource charset as determined by the browser (if applicable).
public string Charset { get; init; }
Property Value
ConnectionId
Physical connection id that was actually used for this request.
public double ConnectionId { get; init; }
Property Value
ConnectionReused
Specifies whether physical connection was actually reused for this request.
public bool ConnectionReused { get; init; }
Property Value
EncodedDataLength
Total number of bytes received for this request so far.
public double EncodedDataLength { get; init; }
Property Value
FromDiskCache
Specifies that the request was served from the disk cache.
public bool? FromDiskCache { get; init; }
Property Value
- bool?
FromEarlyHints
Specifies that the request was served from the prefetch cache.
public bool? FromEarlyHints { get; init; }
Property Value
- bool?
FromPrefetchCache
Specifies that the request was served from the prefetch cache.
public bool? FromPrefetchCache { get; init; }
Property Value
- bool?
FromServiceWorker
Specifies that the request was served from the ServiceWorker.
public bool? FromServiceWorker { get; init; }
Property Value
- bool?
Headers
HTTP response headers.
public IReadOnlyDictionary<string, string> Headers { get; init; }
Property Value
HeadersText
HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo.
[Obsolete]
public string? HeadersText { get; init; }
Property Value
MimeType
Resource mimeType as determined by the browser.
public string MimeType { get; init; }
Property Value
Protocol
Protocol used to fetch this request.
public string? Protocol { get; init; }
Property Value
RemoteIPAddress
Remote IP address.
public string? RemoteIPAddress { get; init; }
Property Value
RemotePort
Remote port.
public long? RemotePort { get; init; }
Property Value
- long?
RequestHeaders
Refined HTTP request headers that were actually transmitted over the network.
public IReadOnlyDictionary<string, string>? RequestHeaders { get; init; }
Property Value
RequestHeadersText
HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo.
[Obsolete]
public string? RequestHeadersText { get; init; }
Property Value
ResponseTime
The time at which the returned response was generated.
public TimeSinceEpoch? ResponseTime { get; init; }
Property Value
SecurityDetails
Security details for the request.
public SecurityDetails? SecurityDetails { get; init; }
Property Value
SecurityState
Security state of the request resource.
public SecurityState SecurityState { get; init; }
Property Value
ServiceWorkerResponseSource
Response source of response from ServiceWorker.
public ServiceWorkerResponseSource? ServiceWorkerResponseSource { get; init; }
Property Value
ServiceWorkerRouterInfo
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.
public ServiceWorkerRouterInfo? ServiceWorkerRouterInfo { get; init; }
Property Value
Status
HTTP response status code.
public long Status { get; init; }
Property Value
StatusText
HTTP response status text.
public string StatusText { get; init; }
Property Value
Timing
Timing information for the given request.
public ResourceTiming? Timing { get; init; }
Property Value
Url
Response URL. This URL can be different from CachedResource.url in case of redirect.
public string Url { get; init; }