pub trait WebBotAuthSignedMessage: SignedMessage {
// Required method
fn fetch_all_signature_agents(&self) -> Vec<String>;
}
Expand description
A trait that messages wishing to be verified as a web-bot-auth
method specifically
must implement.
Required Methods§
Sourcefn fetch_all_signature_agents(&self) -> Vec<String>
fn fetch_all_signature_agents(&self) -> Vec<String>
Obtain every Signature-Agent
header in the message. Despite the name, you can omit
Signature-Agents
that are known to be invalid ahead of time. However, each Signature-Agent
header must be unparsed and a be a valid sfv::Item::String value (meaning it should be encased
in double quotes). You should separately implement looking this up in SignedMessage::lookup_component
as an HTTP header with multiple values.