pl.wendigo.chrome.api.network / RequestPattern

RequestPattern

data class RequestPattern (source)

Request pattern for interception.

Link
Network#RequestPattern type documentation.

Constructors

<init>

RequestPattern(urlPattern: String? = null, resourceType: ResourceType? = null, interceptionStage: InterceptionStage? = null)

Request pattern for interception.

Properties

interceptionStage

val interceptionStage: InterceptionStage?

Stage at wich to begin intercepting requests. Default is Request.

resourceType

val resourceType: ResourceType?

If set, only requests for matching resource types will be intercepted.

urlPattern

val urlPattern: String?

Wildcards ('' -> zero or more, '?' -> exactly one) are allowed. Escape character isbackslash. Omitting is equivalent to "".