Skip to main content

RawExchange

Type Alias RawExchange 

Source
pub type RawExchange<'a> = &'a dyn Fn(&str, &str, &[u8]) -> Result<(u16, Value), CloudError>;
Expand description

One exchange with an already encoded JSON body: method, path (under /v1) and body bytes → the HTTP status and the JSON answer.