Upgrading
The upgrade process differs slightly depending on which version you’re upgrading from.
Upgrading from SDK < v4.x
Upgrading from SDK > v4.x
Two things changed in v4.x:
isVerified()is deprecated. UseisRequestLowScore()instead for the same check. This is optional and mainly useful for logging to indicate whether the request score was below the blocking threshold.isHandledResponse()is new and returnstruewhen HUMAN already wrote the response (block page or first-party), meaning you cannot continue tofilterChain.doFilter
To account for these, update your code accordingly: