Skip to content

Commit 627ba7d

Browse files
Merge pull request #89 from code0-tech/88-http-return-function
Http Stop Function
2 parents 79aace9 + 66b3d71 commit 627ba7d

File tree

5 files changed

+90
-31
lines changed

5 files changed

+90
-31
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"runtime_name": "http::control::respond",
3+
"runtime_parameter_definitions": [
4+
{
5+
"data_type_identifier": {
6+
"type": {
7+
"DataTypeIdentifier": "HTTP_RESPONSE"
8+
}
9+
},
10+
"runtime_name": "http_response",
11+
"default_value": null,
12+
"name": [
13+
{
14+
"code": "en-US",
15+
"content": "Http Response"
16+
}
17+
],
18+
"description": [
19+
{
20+
"code": "en-US",
21+
"content": "The response object that will be returned to the client."
22+
}
23+
],
24+
"documentation": [
25+
{
26+
"code": "en-US",
27+
"content": "Takes an HTTP response object and transmits it to the requesting client. This parameter represents the final output of the server, including headers, status code, and body content."
28+
}
29+
]
30+
}
31+
],
32+
"return_type_identifier": null,
33+
"deprecation_message": [],
34+
"name": [
35+
{
36+
"code": "en-US",
37+
"content": "Respond"
38+
}
39+
],
40+
"description": [
41+
{
42+
"code": "en-US",
43+
"content": "Handles an HTTP response object and returns it to the client."
44+
}
45+
],
46+
"documentation": [
47+
{
48+
"code": "en-US",
49+
"content": "Processes an HTTP response and returns it to the requesting client. This function typically completes the HTTP request–response cycle by delivering the server’s final output, such as headers, status codes, and body content, back to the client."
50+
}
51+
],
52+
"throws_error": false,
53+
"generic_keys": []
54+
}

definitions/standard/runtime_definition/control/control-audit.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@
77

88
## Added
99
- break
10+
11+
16.10.2025
12+
13+
## Renamed
14+
break -> stop

definitions/standard/runtime_definition/control/std_control_break.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

definitions/standard/runtime_definition/control/std_control_return.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
"description": [
1919
{
2020
"code": "en-US",
21-
"content": "The value to be returned."
21+
"content": "The value to be returned to the upper context."
2222
}
2323
],
2424
"documentation": [
2525
{
2626
"code": "en-US",
27-
"content": "This value will be returned to the upper context."
27+
"content": "Specifies the value that will be returned to the upper context. When this node executes, it immediately halts the iteration and passes the value upward."
2828
}
2929
]
3030
}
@@ -47,14 +47,14 @@
4747
"description": [
4848
{
4949
"code": "en-US",
50-
"content": "Returns the specified value to the upper context."
50+
"content": "Returns a value and terminates the current context."
5151
}
5252
],
5353
"documentation": [
5454
{
5555
"code": "en-US",
56-
"content": "Returns the specified value to the upper context."
56+
"content": "Ends the current context and returns the specified value to the upper scope. This node behaves like a standard 'return' statement in programming languages, stopping further execution within the current flow."
5757
}
5858
],
5959
"deprecation_message": []
60-
}
60+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"runtime_name": "std::control::stop",
3+
"runtime_parameter_definitions": [],
4+
"return_type_identifier": null,
5+
"throws_error": false,
6+
"generic_keys": [],
7+
"name": [
8+
{
9+
"code": "en-US",
10+
"content": "Stop"
11+
}
12+
],
13+
"description": [
14+
{
15+
"code": "en-US",
16+
"content": "Completely stops the current context and prevents any further iterations."
17+
}
18+
],
19+
"documentation": [
20+
{
21+
"code": "en-US",
22+
"content": "Terminates the current execution context entirely, halting all ongoing and future iterations. Once invoked, no additional steps or loops within this context will be executed. This node behaves like a global stop or termination signal within the flow."
23+
}
24+
],
25+
"deprecation_message": []
26+
}

0 commit comments

Comments
 (0)