Skip to content

Commit bc2e67b

Browse files
committed
Update README.md
1 parent 02e5bfd commit bc2e67b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

examples/http/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ Examples:
2121
# Basic usage (URL-encoded)
2222
curl "http://localhost:8000/compute?input=21%2B21"
2323

24-
# Alternative URL-encoded formats
25-
curl "http://localhost:8000/compute?input=21%20%2B%2021"
26-
curl "http://localhost:8000/compute?input=21+21" # Some clients handle this
27-
2824
# With custom timeout (URL-encoded)
2925
curl "http://localhost:8000/compute?input=21%2B21&timeout=5.0"
3026
```
@@ -62,14 +58,20 @@ curl -X POST http://localhost:8000/compute \
6258

6359
### Response
6460

65-
Both endpoints return a JSON response:
61+
The response is a JSON object with a `result` field.
6662

6763
```json
6864
{
6965
"result": 42
7066
}
7167
```
7268

69+
```json
70+
{
71+
"result": "Hello, Monic!"
72+
}
73+
```
74+
7375
## Notes
7476

7577
- The `input` field is required for both GET and POST requests

0 commit comments

Comments
 (0)