pub struct HttpEvidencePredicate;Expand description
Standard raw HTTP observations emitted by Termivar evidence producers.
This is an open vocabulary: Self::response_header supports custom
normalized response header names in addition to the common constants.
Implementations§
Source§impl HttpEvidencePredicate
impl HttpEvidencePredicate
Sourcepub const REQUEST_METHOD: PredicateDescriptor
pub const REQUEST_METHOD: PredicateDescriptor
HTTP request method.
Sourcepub const REQUEST_URL: PredicateDescriptor
pub const REQUEST_URL: PredicateDescriptor
Requested URL.
Sourcepub const REQUEST_PATH_SEGMENT: PredicateDescriptor
pub const REQUEST_PATH_SEGMENT: PredicateDescriptor
One bounded, non-empty URL path segment.
Sourcepub const RESPONSE_STATUS: PredicateDescriptor
pub const RESPONSE_STATUS: PredicateDescriptor
Numeric HTTP response status.
Sourcepub const RESPONSE_FINAL_URL: PredicateDescriptor
pub const RESPONSE_FINAL_URL: PredicateDescriptor
Final URL after redirects.
Sourcepub const RESPONSE_VERSION: PredicateDescriptor
pub const RESPONSE_VERSION: PredicateDescriptor
Debug-formatted HTTP protocol version.
Sourcepub const RESPONSE_MEDIA_TYPE: PredicateDescriptor
pub const RESPONSE_MEDIA_TYPE: PredicateDescriptor
Validated, lowercase media-type essence without parameters.
Sourcepub const RESPONSE_MEDIA_TYPE_JSON_COMPATIBLE: PredicateDescriptor
pub const RESPONSE_MEDIA_TYPE_JSON_COMPATIBLE: PredicateDescriptor
Whether the validated media type uses JSON or a +json suffix.
Sourcepub const RESPONSE_BODY_BYTES_OBSERVED: PredicateDescriptor
pub const RESPONSE_BODY_BYTES_OBSERVED: PredicateDescriptor
Number of response body bytes retained by the bounded collector.
Sourcepub const RESPONSE_BODY_TRUNCATED: PredicateDescriptor
pub const RESPONSE_BODY_TRUNCATED: PredicateDescriptor
Whether the bounded response body was truncated.
Sourcepub const RESPONSE_BODY_SHA256: PredicateDescriptor
pub const RESPONSE_BODY_SHA256: PredicateDescriptor
SHA-256 digest of the observed response body bytes.
Sourcepub const RESPONSE_BODY_SAMPLE: PredicateDescriptor
pub const RESPONSE_BODY_SAMPLE: PredicateDescriptor
Optional bounded textual response body sample.
Sourcepub const RESPONSE_FORM_CONTROL_NAMES: PredicateDescriptor
pub const RESPONSE_FORM_CONTROL_NAMES: PredicateDescriptor
Named HTML form-control names (input/select/textarea name
attributes) conservatively observed in the bounded response sample.
This predicate contains control names only; control values are never
copied into it. (The separate, host-authorized Self::RESPONSE_BODY_SAMPLE
still carries the original bounded HTML, which may include value=
attribute contents.) Presence indicates candidate input discovery, not
server acceptance, and never implies a complete set.
Sourcepub const TIMING_TTFB_MS: PredicateDescriptor
pub const TIMING_TTFB_MS: PredicateDescriptor
Time to first response byte in milliseconds.
Sourcepub const TIMING_TOTAL_MS: PredicateDescriptor
pub const TIMING_TOTAL_MS: PredicateDescriptor
Total request duration in milliseconds.
Sourcepub const COOKIE_NAME: PredicateDescriptor
pub const COOKIE_NAME: PredicateDescriptor
Response cookie name. Cookie values are never represented here.
Sourcepub const HEADER_ALLOW: PredicateDescriptor
pub const HEADER_ALLOW: PredicateDescriptor
Captured Allow response header.
Sourcepub const HEADER_CONTENT_TYPE: PredicateDescriptor
pub const HEADER_CONTENT_TYPE: PredicateDescriptor
Captured Content-Type response header.
Sourcepub const HEADER_SERVER: PredicateDescriptor
pub const HEADER_SERVER: PredicateDescriptor
Captured Server response header.
Sourcepub const HEADER_WWW_AUTHENTICATE: PredicateDescriptor
pub const HEADER_WWW_AUTHENTICATE: PredicateDescriptor
Captured WWW-Authenticate response header.
Sourcepub const HEADER_X_POWERED_BY: PredicateDescriptor
pub const HEADER_X_POWERED_BY: PredicateDescriptor
Captured X-Powered-By response header.
Sourcepub const RATE_LIMIT_DETECTED: PredicateDescriptor
pub const RATE_LIMIT_DETECTED: PredicateDescriptor
Whether the response status directly indicated rate limiting.
Sourcepub const RATE_LIMIT_ADVERTISED: PredicateDescriptor
pub const RATE_LIMIT_ADVERTISED: PredicateDescriptor
Whether the response advertised rate-limit metadata.
Sourcepub const RATE_LIMIT_RETRY_AFTER: PredicateDescriptor
pub const RATE_LIMIT_RETRY_AFTER: PredicateDescriptor
Normalized Retry-After value.
Sourcepub const RATE_LIMIT_LIMIT: PredicateDescriptor
pub const RATE_LIMIT_LIMIT: PredicateDescriptor
Normalized rate-limit capacity.
Sourcepub const RATE_LIMIT_REMAINING: PredicateDescriptor
pub const RATE_LIMIT_REMAINING: PredicateDescriptor
Normalized remaining rate-limit capacity.
Sourcepub const RATE_LIMIT_RESET: PredicateDescriptor
pub const RATE_LIMIT_RESET: PredicateDescriptor
Normalized rate-limit reset value.
Sourcepub fn response_header(
normalized_name: impl Into<String>,
) -> Result<KnowledgePredicate, ReasoningModelError>
pub fn response_header( normalized_name: impl Into<String>, ) -> Result<KnowledgePredicate, ReasoningModelError>
Creates an open-family predicate for a validated, normalized header.
HTTP producers remain responsible for header syntax validation and lowercase normalization before calling this method.
Sourcepub const fn fixed() -> &'static [PredicateDescriptor]
pub const fn fixed() -> &'static [PredicateDescriptor]
Returns every fixed descriptor in stable declaration order.