Skip to main content

Request

Trait Request 

Source
pub trait Request {
    // Required methods
    fn method(&self) -> Method;
    fn path(&self) -> &'static str;
    fn parameters(&self) -> Vec<(String, String)>;

    // Provided methods
    fn sensitive_parameter_names(&self) -> &'static [&'static str] { ... }
    fn request_parts(&self) -> RequestParts { ... }
}
Expand description

Defines the behavior required from a request participant in the endpoint workflow.

Required Methods§

Source

fn method(&self) -> Method

Returns the HTTP method Gingr expects for this request.

Source

fn path(&self) -> &'static str

Returns the Gingr API path used for request capture and transport.

Source

fn parameters(&self) -> Vec<(String, String)>

Returns the query or form parameters that document exactly what provider facts are requested.

Provided Methods§

Source

fn sensitive_parameter_names(&self) -> &'static [&'static str]

Names provider parameters such as phone, email, or API key that must be redacted in diagnostics.

Source

fn request_parts(&self) -> RequestParts

Converts the descriptor into transport-ready parts without sending a live Gingr request.

Implementors§