File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ edgeless_cli workflow stop 960b7431-aa33-4c8a-b07f-8efb0c0ccca1
8585# Update the Actor and Restart the Application
8686
8787Update the generated Actor to include a handler for the path ` /hello ` .
88- Use any installed or connected editor to edit the Actors main file:
88+ Use any installed or connected editor to edit the Actor's main file:
8989
9090``` bash
9191nano example_actor_1/src/lib.rs
@@ -96,13 +96,13 @@ Update the `http_request` handlers as follows:
9696``` diff
9797fn handle_call_http_request(_src: InstanceId, req: Self::EFT_HTTP_REQUEST) -> Self::EFT_HTTP_RESPONSE {
9898 log::info!("HTTP request received! Path: {}", req.path);
99- + if req.path == "/hello" {
100- + return edgeless_function_types::http::EdgelessHTTPResponse {
101- + status: 200,
102- + body: Some(Vec::<u8>::from("World")),
103- + headers: std::collections::HashMap::<String, String>::new(),
104- + };
105- + }
99+ + if req.path == "/hello" {
100+ + return edgeless_function_types::http::EdgelessHTTPResponse {
101+ + status: 200,
102+ + body: Some(Vec::<u8>::from("World")),
103+ + headers: std::collections::HashMap::<String, String>::new(),
104+ + };
105+ + }
106106 edgeless_function_types::http::EdgelessHTTPResponse {
107107 status: 404,
108108 body: Some(Vec::<u8>::from("Handler not configured.")),
You can’t perform that action at this time.
0 commit comments