Skip to content

Commit

Permalink
FEAT: some useful responses from the test httpd server
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Apr 21, 2022
1 parent 093c89d commit 0df0d44
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/tests/test-httpd.r3
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,19 @@ http-server/config/actor 8081 [
ctx/out/header/Content-Type: "text/plain; charset=UTF-8"
ctx/out/content: humans.txt
]
%/ip [
; service to resolve the remote ip like: http://ifconfig.me/ip
ctx/out/status: 200
ctx/out/header/Content-Type: "text/plain"
ctx/out/content: form ctx/remote-ip
]
%/header [
ctx/out/status: 200
ctx/out/header/Content-Type: "text/plain"
ctx/out/content: ajoin [
"Request input:" mold ctx/inp
]
]
]
]
On-Post-Received: func [ctx [object!]][
Expand Down

0 comments on commit 0df0d44

Please sign in to comment.