pl.wendigo.chrome.api.network / ContinueInterceptedRequestRequest

ContinueInterceptedRequestRequest

data class ContinueInterceptedRequestRequest (source)

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

Response to Network.requestIntercepted which either modifies the request to continue with any modifications, or blocks it, or completes it with the provided response bytes. If a network fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted event will be sent with the same InterceptionId. Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.

Link
Network#continueInterceptedRequest method documentation.

See Also

NetworkOperations.continueInterceptedRequest

Constructors

<init>

ContinueInterceptedRequestRequest(interceptionId: InterceptionId, errorReason: ErrorReason? = null, rawResponse: String? = null, url: String? = null, method: String? = null, postData: String? = null, headers: Headers? = null, authChallengeResponse: AuthChallengeResponse? = null)

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

Properties

authChallengeResponse

val authChallengeResponse: AuthChallengeResponse?

Response to a requestIntercepted with an authChallenge. Must not be set otherwise.

errorReason

val errorReason: ErrorReason?

If set this causes the request to fail with the given reason. Passing Aborted for requests marked with isNavigationRequest also cancels the navigation. Must not be set in response to an authChallenge.

headers

val headers: Headers?

If set this allows the request headers to be changed. Must not be set in response to an authChallenge.

interceptionId

val interceptionId: InterceptionId

method

val method: String?

If set this allows the request method to be overridden. Must not be set in response to an authChallenge.

postData

val postData: String?

If set this allows postData to be set. Must not be set in response to an authChallenge.

rawResponse

val rawResponse: String?

If set the requests completes using with the provided base64 encoded raw response, including HTTP status line and headers etc... Must not be set in response to an authChallenge.

url

val url: String?

If set the request url will be modified in a way that's not observable by page. Must not be set in response to an authChallenge.