(extension_id: &str)
| 15 | const EXTENSION_ACCEPT_FEATURE_VALUE: &str = "accountId"; |
| 16 | |
| 17 | pub(crate) fn next_event_request(extension_id: &str) -> Result<Request<Body>, Error> { |
| 18 | let req = build_request() |
| 19 | .method(Method::GET) |
| 20 | .header(EXTENSION_ID_HEADER, extension_id) |
| 21 | .uri("/2020-01-01/extension/event/next") |
| 22 | .body(Body::empty())?; |
| 23 | Ok(req) |
| 24 | } |
| 25 | |
| 26 | pub(crate) fn register_request(extension_name: &str, events: &[&str]) -> Result<Request<Body>, Error> { |
| 27 | let events = serde_json::json!({ "events": events }); |
nothing calls this directly
no test coverage detected