Skip to content

Commit 9f21464

Browse files
committed
Fix quickstart guide.
1 parent a94dad8 commit 9f21464

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

documentation/quickstart.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ edgeless_cli workflow stop 960b7431-aa33-4c8a-b07f-8efb0c0ccca1
8585
# Update the Actor and Restart the Application
8686

8787
Update 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
9191
nano example_actor_1/src/lib.rs
@@ -96,13 +96,13 @@ Update the `http_request` handlers as follows:
9696
```diff
9797
fn 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.")),

0 commit comments

Comments
 (0)