pub type HttpOutcomeObserver = fn(url: &str, outcome: &Result<HttpResponse, PortError>) -> Option<DomainEventBytes>;Expand description
平台 HTTP outcome 到业务事件的观察函数。
规则与 payload 归业务模块;host 只调用它并把返回事件送入 EventSink。
pub type HttpOutcomeObserver = fn(url: &str, outcome: &Result<HttpResponse, PortError>) -> Option<DomainEventBytes>;平台 HTTP outcome 到业务事件的观察函数。
规则与 payload 归业务模块;host 只调用它并把返回事件送入 EventSink。