aboutsummaryrefslogtreecommitdiff
path: root/testdata/target_http_run_withrawbody_json_test.txt
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-02-13 02:14:35 +0700
committerShulhan <ms@kilabit.info>2024-02-15 01:12:34 +0700
commit372d10a3e1ea01f8d03e44e6ab8be673d05c0773 (patch)
tree02df85cae2d4398cfd74ae193b05f490628cc517 /testdata/target_http_run_withrawbody_json_test.txt
parentbc00c07248b1097f6e8f9281edc659cbd4bdd4ff (diff)
downloadgorankusu-372d10a3e1ea01f8d03e44e6ab8be673d05c0773.tar.xz
all: move example to root directory
The goal is to remove duplicate code in testing and show the example on how to create Gorankusu service from godoc. Implements: https://todo.sr.ht/~shulhan/gorankusu/5
Diffstat (limited to 'testdata/target_http_run_withrawbody_json_test.txt')
-rw-r--r--testdata/target_http_run_withrawbody_json_test.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/testdata/target_http_run_withrawbody_json_test.txt b/testdata/target_http_run_withrawbody_json_test.txt
index c332987..4666b0e 100644
--- a/testdata/target_http_run_withrawbody_json_test.txt
+++ b/testdata/target_http_run_withrawbody_json_test.txt
@@ -3,21 +3,21 @@ Test data for testing [HTTPTarget.WithRawBody].
>>> valid:http_request_body
{
"Target": {
- "id": "target_http"
+ "id": "example_http"
},
"HTTPTarget": {
- "id": "rawbody_json",
+ "id": "http_rawbody_json",
"Method": 6,
"RequestType": 4,
- "Path": "/rawbody/json",
+ "Path": "/example/rawbody/json",
"RawBody": "eyJpZCI6MSwibmFtZSI6ImdvcmFua3VzdSJ9",
"WithRawBody": true
}
}
<<< valid:RunResponse.DumpRequest
-POST /rawbody/json HTTP/1.1
-Host: 127.0.0.1:22796
+POST /example/rawbody/json HTTP/1.1
+Host: 127.0.0.1:8217
User-Agent: libhttp/0.53.0
Content-Length: 27
Content-Type: application/json