pub trait EthResponseValidator {
// Required methods
fn is_likely_bad_headers_response(&self, request: &HeadersRequest) -> bool;
fn reputation_change_err(&self) -> Option<ReputationChangeKind>;
}
Expand description
Helper trait used to validate responses.
Required Methods§
Sourcefn is_likely_bad_headers_response(&self, request: &HeadersRequest) -> bool
fn is_likely_bad_headers_response(&self, request: &HeadersRequest) -> bool
Determine whether the response matches what we requested in HeadersRequest
Sourcefn reputation_change_err(&self) -> Option<ReputationChangeKind>
fn reputation_change_err(&self) -> Option<ReputationChangeKind>
Return the response reputation impact if any