Skip to main content

HttpEvidencePredicate

Struct HttpEvidencePredicate 

Source
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

Source

pub const REQUEST_METHOD: PredicateDescriptor

HTTP request method.

Source

pub const REQUEST_URL: PredicateDescriptor

Requested URL.

Source

pub const REQUEST_PATH_SEGMENT: PredicateDescriptor

One bounded, non-empty URL path segment.

Source

pub const RESPONSE_STATUS: PredicateDescriptor

Numeric HTTP response status.

Source

pub const RESPONSE_FINAL_URL: PredicateDescriptor

Final URL after redirects.

Source

pub const RESPONSE_VERSION: PredicateDescriptor

Debug-formatted HTTP protocol version.

Source

pub const RESPONSE_MEDIA_TYPE: PredicateDescriptor

Validated, lowercase media-type essence without parameters.

Source

pub const RESPONSE_MEDIA_TYPE_JSON_COMPATIBLE: PredicateDescriptor

Whether the validated media type uses JSON or a +json suffix.

Source

pub const RESPONSE_BODY_BYTES_OBSERVED: PredicateDescriptor

Number of response body bytes retained by the bounded collector.

Source

pub const RESPONSE_BODY_TRUNCATED: PredicateDescriptor

Whether the bounded response body was truncated.

Source

pub const RESPONSE_BODY_SHA256: PredicateDescriptor

SHA-256 digest of the observed response body bytes.

Source

pub const RESPONSE_BODY_SAMPLE: PredicateDescriptor

Optional bounded textual response body sample.

Source

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.

Source

pub const TIMING_TTFB_MS: PredicateDescriptor

Time to first response byte in milliseconds.

Source

pub const TIMING_TOTAL_MS: PredicateDescriptor

Total request duration in milliseconds.

Source

pub const COOKIE_NAME: PredicateDescriptor

Response cookie name. Cookie values are never represented here.

Source

pub const HEADER_ALLOW: PredicateDescriptor

Captured Allow response header.

Source

pub const HEADER_CONTENT_TYPE: PredicateDescriptor

Captured Content-Type response header.

Source

pub const HEADER_SERVER: PredicateDescriptor

Captured Server response header.

Source

pub const HEADER_WWW_AUTHENTICATE: PredicateDescriptor

Captured WWW-Authenticate response header.

Source

pub const HEADER_X_POWERED_BY: PredicateDescriptor

Captured X-Powered-By response header.

Source

pub const RATE_LIMIT_DETECTED: PredicateDescriptor

Whether the response status directly indicated rate limiting.

Source

pub const RATE_LIMIT_ADVERTISED: PredicateDescriptor

Whether the response advertised rate-limit metadata.

Source

pub const RATE_LIMIT_RETRY_AFTER: PredicateDescriptor

Normalized Retry-After value.

Source

pub const RATE_LIMIT_LIMIT: PredicateDescriptor

Normalized rate-limit capacity.

Source

pub const RATE_LIMIT_REMAINING: PredicateDescriptor

Normalized remaining rate-limit capacity.

Source

pub const RATE_LIMIT_RESET: PredicateDescriptor

Normalized rate-limit reset value.

Source

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.

Source

pub const fn fixed() -> &'static [PredicateDescriptor]

Returns every fixed descriptor in stable declaration order.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.