MCPcopy Index your code
hub / github.com/cargo-lambda/cargo-lambda / routes

Function routes

crates/cargo-lambda-watch/src/runtime/mod.rs:16–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14pub(crate) const LAMBDA_RUNTIME_XRAY_TRACE_HEADER: &str = "lambda-runtime-trace-id";
15
16pub(crate) fn routes() -> Router<RefRuntimeState> {
17 Router::new()
18 .route("/2020-01-01/extension/register", post(register_extension))
19 // secondary route is for internal extensions
20 .route(
21 "/:function_name/2020-01-01/extension/register",
22 post(register_extension),
23 )
24 .route(
25 "/2020-01-01/extension/event/next",
26 get(next_extension_event),
27 )
28 // secondary route is for internal extensions
29 .route(
30 "/:function_name/2020-01-01/extension/event/next",
31 get(next_extension_event),
32 )
33 .route("/2020-08-15/logs", put(subcribe_extension_events))
34 .route("/2022-07-01/telemetry", put(subcribe_extension_events))
35 .route(
36 "/:function_name/2018-06-01/runtime/invocation/next",
37 get(next_request),
38 )
39 .route(
40 "/2018-06-01/runtime/invocation/next",
41 get(bare_next_request),
42 )
43 .route(
44 "/:function_name/2018-06-01/runtime/invocation/:req_id/response",
45 post(next_invocation_response),
46 )
47 .route(
48 "/2018-06-01/runtime/invocation/:req_id/response",
49 post(bare_next_invocation_response),
50 )
51 .route(
52 "/:function_name/2018-06-01/runtime/invocation/:req_id/error",
53 post(next_invocation_error),
54 )
55 .route(
56 "/2018-06-01/runtime/invocation/:req_id/error",
57 post(bare_next_invocation_error),
58 )
59 .route(
60 "/:function_name/2018-06-01/runtime/init/error",
61 post(init_error),
62 )
63 .route("/2018-06-01/runtime/init/error", post(bare_init_error))
64}

Callers 1

start_serverFunction · 0.50

Calls 1

newFunction · 0.85

Tested by

no test coverage detected