DataDomeInterceptor class
Methods
-
didResolveCaptcha(String cookie)
→ void
-
-
dismissCaptcha()
→ void
-
-
fillPayload(String cookie, RequestOptions options)
→ Future<void>
-
-
getDataDomeCookie()
→ Future<String>
-
Returns the DataDome cookie. The returned value should be a string representing the cookie with its value and its attributes.
Example: "datadome=xxxx; Max-Age=31536000; Domain=.yourdomain.com; Path=/; Secure; SameSite=Lax"
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onError(DioError err, ErrorInterceptorHandler handler)
→ void
-
The callback will be executed on error.
-
onRequest(RequestOptions options, RequestInterceptorHandler handler)
→ void
-
The callback will be executed before the request is initiated.
-
onResponse(Response response, ResponseInterceptorHandler handler)
→ void
-
The callback will be executed on success.
If you want to continue the response, call
handler.next
.
-
retry(RetriableRequest retriable)
→ Future<Null>
-
-
retryFailedRequests()
→ void
-
-
setDataDomeCookie(String newValue)
→ void
-
Saves a DataDome cookie. The new value should be a string representing the cookie with its value and its attributes.
Example: "datadome=xxxx; Max-Age=31536000; Domain=.yourdomain.com; Path=/; Secure; SameSite=Lax"
-
showCaptcha(BuildContext context, String? captchaUrl, ValueChanged<String> onCaptchaResolved)
→ void
-
-
toString()
→ String
-
A string representation of this object.
inherited