Skip to content

Commit

Permalink
Merge branch 'main' into lporoli/upgrader-final-release
Browse files Browse the repository at this point in the history
  • Loading branch information
leoporoli authored Jun 5, 2024
2 parents a8f1c13 + 473bed8 commit cbeb91d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/api-reference/starlark-reference/plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,9 @@ http_response = plan.request(
# OPTIONAL (Default: Running 'REQUEST_TYPE' request on service 'SERVICE_NAME')
description = "making a request"
)
plan.print(get_response["body"]) # Prints the body of the request
plan.print(get_response["code"]) # Prints the result code of the request (e.g. 200, 500)
plan.print(get_response["extract.extracted-field"]) # Prints the result of running ".name.id" query, that is saved with key "extracted-field"
plan.print(http_response["body"]) # Prints the body of the request
plan.print(http_response["code"]) # Prints the result code of the request (e.g. 200, 500)
plan.print(http_response["extract.extracted-field"]) # Prints the result of running ".name.id" query, that is saved with key "extracted-field"
```

The instruction returns a response, which is a `dict` with following key-value pair; the values are a [future reference][future-references-reference]
Expand Down

0 comments on commit cbeb91d

Please sign in to comment.