MCPcopy Index your code
hub / github.com/aws/aws-lambda-rust-runtime / next_event_request

Function next_event_request

lambda-extension/src/requests.rs:17–24  ·  view source on GitHub ↗
(extension_id: &str)

Source from the content-addressed store, hash-verified

15const EXTENSION_ACCEPT_FEATURE_VALUE: &str = "accountId";
16
17pub(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
26pub(crate) fn register_request(extension_name: &str, events: &[&str]) -> Result<Request<Body>, Error> {
27 let events = serde_json::json!({ "events": events });

Callers

nothing calls this directly

Calls 2

build_requestFunction · 0.85
uriMethod · 0.80

Tested by

no test coverage detected