updated readme
This commit is contained in:
@@ -68,7 +68,7 @@ async fn handle(req: http.Request, resp: mut http.Response): {
|
||||
let response_data = ExampleResponse{
|
||||
id: 4,
|
||||
name: "Andrew",
|
||||
email: "andrew@example.com",
|
||||
email: "andrew@boringlang.com",
|
||||
};
|
||||
await resp.set_status(200);
|
||||
await resp.write(json.encode[ExampleResponse](response_data));
|
||||
|
||||
Reference in New Issue
Block a user