chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.network / RequestPattern

RequestPattern

data class RequestPattern

Request pattern for interception.

Official doc

Constructors

<init>

Request pattern for interception.

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

Properties

interceptionStage

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

val interceptionStage: InterceptionStage?

resourceType

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

val resourceType: ResourceType?

urlPattern

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

val urlPattern: String?