pl.wendigo.chrome.api.network

Package pl.wendigo.chrome.api.network

Contains DevTools Protocol Network domain implementation accessible via NetworkOperations class.

Types

AuthChallenge

data class AuthChallenge

Authorization challenge for HTTP status code 401 or 407.

AuthChallengeResponse

data class AuthChallengeResponse

Response to an AuthChallenge.

BlockedCookieWithReason

data class BlockedCookieWithReason

A cookie with was not sent with a request with the corresponding reason.

BlockedReason

enum class BlockedReason

The reason why request was blocked.

BlockedSetCookieWithReason

data class BlockedSetCookieWithReason

A cookie which was not stored from a response with the corresponding reason.

CachedResource

data class CachedResource

Information about the cached resource.

CanClearBrowserCacheResponse

data class CanClearBrowserCacheResponse

Represents response frame that is returned from Network#canClearBrowserCache operation call. Tells whether clearing browser cache is supported.

CanClearBrowserCookiesResponse

data class CanClearBrowserCookiesResponse

Represents response frame that is returned from Network#canClearBrowserCookies operation call. Tells whether clearing browser cookies is supported.

CanEmulateNetworkConditionsResponse

data class CanEmulateNetworkConditionsResponse

Represents response frame that is returned from Network#canEmulateNetworkConditions operation call. Tells whether emulation of network conditions is supported.

CertificateTransparencyCompliance

enum class CertificateTransparencyCompliance

Whether the request complied with Certificate Transparency policy.

ConnectionType

enum class ConnectionType

The underlying connection technology that the browser is supposedly using.

ContinueInterceptedRequestRequest

data class ContinueInterceptedRequestRequest

Represents request frame that can be used with Network#continueInterceptedRequest operation call.

Cookie

data class Cookie

Cookie object

CookieBlockedReason

enum class CookieBlockedReason

Types of reasons why a cookie may not be sent with a request.

CookieParam

data class CookieParam

Cookie parameter object

CookieSameSite

enum class CookieSameSite

Represents the cookie's 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies

DataReceivedEvent

data class DataReceivedEvent : Event

Fired when data chunk was received over the network.

DeleteCookiesRequest

data class DeleteCookiesRequest

Represents request frame that can be used with Network#deleteCookies operation call.

EmulateNetworkConditionsRequest

data class EmulateNetworkConditionsRequest

Represents request frame that can be used with Network#emulateNetworkConditions operation call.

EnableRequest

data class EnableRequest

Represents request frame that can be used with Network#enable operation call.

ErrorReason

enum class ErrorReason

Network level fetch failure reason.

EventSourceMessageReceivedEvent

data class EventSourceMessageReceivedEvent : Event

Fired when EventSource message is received.

GetAllCookiesResponse

data class GetAllCookiesResponse

Represents response frame that is returned from Network#getAllCookies operation call. Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field.

GetCertificateRequest

data class GetCertificateRequest

Represents request frame that can be used with Network#getCertificate operation call.

GetCertificateResponse

data class GetCertificateResponse

Represents response frame that is returned from Network#getCertificate operation call. Returns the DER-encoded certificate.

GetCookiesRequest

data class GetCookiesRequest

Represents request frame that can be used with Network#getCookies operation call.

GetCookiesResponse

data class GetCookiesResponse

Represents response frame that is returned from Network#getCookies operation call. Returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the cookies field.

GetRequestPostDataRequest

data class GetRequestPostDataRequest

Represents request frame that can be used with Network#getRequestPostData operation call.

GetRequestPostDataResponse

data class GetRequestPostDataResponse

Represents response frame that is returned from Network#getRequestPostData operation call. Returns post data sent with the request. Returns an error when no data was sent with the request.

GetResponseBodyForInterceptionRequest

data class GetResponseBodyForInterceptionRequest

Represents request frame that can be used with Network#getResponseBodyForInterception operation call.

GetResponseBodyForInterceptionResponse

data class GetResponseBodyForInterceptionResponse

Represents response frame that is returned from Network#getResponseBodyForInterception operation call. Returns content served for the given currently intercepted request.

GetResponseBodyRequest

data class GetResponseBodyRequest

Represents request frame that can be used with Network#getResponseBody operation call.

GetResponseBodyResponse

data class GetResponseBodyResponse

Represents response frame that is returned from Network#getResponseBody operation call. Returns content served for the given request.

Initiator

data class Initiator

Information about the request initiator.

InterceptionStage

enum class InterceptionStage

Stages of the interception to begin intercepting. Request will intercept before the request is sent. Response will intercept after the response is received.

LoadingFailedEvent

data class LoadingFailedEvent : Event

Fired when HTTP request has failed to load.

LoadingFinishedEvent

data class LoadingFinishedEvent : Event

Fired when HTTP request has finished loading.

NetworkOperations

class NetworkOperations

Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.

ReplayXHRRequest

data class ReplayXHRRequest

Represents request frame that can be used with Network#replayXHR operation call.

Request

data class Request

HTTP request data.

RequestInterceptedEvent

data class RequestInterceptedEvent : Event

Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.

RequestPattern

data class RequestPattern

Request pattern for interception.

RequestServedFromCacheEvent

data class RequestServedFromCacheEvent : Event

Fired if request ended up loading from cache.

RequestWillBeSentEvent

data class RequestWillBeSentEvent : Event

Fired when page is about to send HTTP request.

RequestWillBeSentExtraInfoEvent

data class RequestWillBeSentExtraInfoEvent : Event

Fired when additional information about a requestWillBeSent event is available from the network stack. Not every requestWillBeSent event will have an additional requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent or requestWillBeSentExtraInfo will be fired first for the same request.

ResourceChangedPriorityEvent

data class ResourceChangedPriorityEvent : Event

Fired when resource loading priority is changed

ResourcePriority

enum class ResourcePriority

Loading priority of a resource request.

ResourceTiming

data class ResourceTiming

Timing information for the request.

ResourceType

enum class ResourceType

Resource type as it was perceived by the rendering engine.

Response

data class Response

HTTP response data.

ResponseReceivedEvent

data class ResponseReceivedEvent : Event

Fired when HTTP response is available.

ResponseReceivedExtraInfoEvent

data class ResponseReceivedExtraInfoEvent : Event

Fired when additional information about a responseReceived event is available from the network stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for it, and responseReceivedExtraInfo may be fired before or after responseReceived.

SearchInResponseBodyRequest

data class SearchInResponseBodyRequest

Represents request frame that can be used with Network#searchInResponseBody operation call.

SearchInResponseBodyResponse

data class SearchInResponseBodyResponse

Represents response frame that is returned from Network#searchInResponseBody operation call. Searches for given string in response content.

SecurityDetails

data class SecurityDetails

Security details about a request.

SetBlockedURLsRequest

data class SetBlockedURLsRequest

Represents request frame that can be used with Network#setBlockedURLs operation call.

SetBypassServiceWorkerRequest

data class SetBypassServiceWorkerRequest

Represents request frame that can be used with Network#setBypassServiceWorker operation call.

SetCacheDisabledRequest

data class SetCacheDisabledRequest

Represents request frame that can be used with Network#setCacheDisabled operation call.

SetCookieBlockedReason

enum class SetCookieBlockedReason

Types of reasons why a cookie may not be stored from a response.

SetCookieRequest

data class SetCookieRequest

Represents request frame that can be used with Network#setCookie operation call.

SetCookieResponse

data class SetCookieResponse

Represents response frame that is returned from Network#setCookie operation call. Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.

SetCookiesRequest

data class SetCookiesRequest

Represents request frame that can be used with Network#setCookies operation call.

SetDataSizeLimitsForTestRequest

data class SetDataSizeLimitsForTestRequest

Represents request frame that can be used with Network#setDataSizeLimitsForTest operation call.

SetExtraHTTPHeadersRequest

data class SetExtraHTTPHeadersRequest

Represents request frame that can be used with Network#setExtraHTTPHeaders operation call.

SetRequestInterceptionRequest

data class SetRequestInterceptionRequest

Represents request frame that can be used with Network#setRequestInterception operation call.

SetUserAgentOverrideRequest

data class SetUserAgentOverrideRequest

Represents request frame that can be used with Network#setUserAgentOverride operation call.

SignedCertificateTimestamp

data class SignedCertificateTimestamp

Details of a signed certificate timestamp (SCT).

SignedExchangeError

data class SignedExchangeError

Information about a signed exchange response.

SignedExchangeErrorField

enum class SignedExchangeErrorField

Field type for a signed exchange related error.

SignedExchangeHeader

data class SignedExchangeHeader

Information about a signed exchange header. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation

SignedExchangeInfo

data class SignedExchangeInfo

Information about a signed exchange response.

SignedExchangeReceivedEvent

data class SignedExchangeReceivedEvent : Event

Fired when a signed exchange was received over the network

SignedExchangeSignature

data class SignedExchangeSignature

Information about a signed exchange signature. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1

TakeResponseBodyForInterceptionAsStreamRequest

data class TakeResponseBodyForInterceptionAsStreamRequest

Represents request frame that can be used with Network#takeResponseBodyForInterceptionAsStream operation call.

TakeResponseBodyForInterceptionAsStreamResponse

data class TakeResponseBodyForInterceptionAsStreamResponse

Represents response frame that is returned from Network#takeResponseBodyForInterceptionAsStream operation call. Returns a handle to the stream representing the response body. Note that after this command, the intercepted request can't be continued as is -- you either need to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified.

WebSocketClosedEvent

data class WebSocketClosedEvent : Event

Fired when WebSocket is closed.

WebSocketCreatedEvent

data class WebSocketCreatedEvent : Event

Fired upon WebSocket creation.

WebSocketFrame

data class WebSocketFrame

WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.

WebSocketFrameErrorEvent

data class WebSocketFrameErrorEvent : Event

Fired when WebSocket message error occurs.

WebSocketFrameReceivedEvent

data class WebSocketFrameReceivedEvent : Event

Fired when WebSocket message is received.

WebSocketFrameSentEvent

data class WebSocketFrameSentEvent : Event

Fired when WebSocket message is sent.

WebSocketHandshakeResponseReceivedEvent

data class WebSocketHandshakeResponseReceivedEvent : Event

Fired when WebSocket handshake response becomes available.

WebSocketRequest

data class WebSocketRequest

WebSocket request data.

WebSocketResponse

data class WebSocketResponse

WebSocket response data.

WebSocketWillSendHandshakeRequestEvent

data class WebSocketWillSendHandshakeRequestEvent : Event

Fired when WebSocket is about to initiate handshake.

Type Aliases

Headers

typealias Headers = Map<String, Any>

Request / response headers as keys / values of JSON object.

InterceptionId

typealias InterceptionId = String

Unique intercepted request identifier.

LoaderId

typealias LoaderId = String

Unique loader identifier.

MonotonicTime

typealias MonotonicTime = Double

Monotonically increasing time in seconds since an arbitrary point in the past.

RequestId

typealias RequestId = String

Unique request identifier.

TimeSinceEpoch

typealias TimeSinceEpoch = Double

UTC time in seconds, counted from January 1, 1970.