Skip to main content

Module send

Module send 

Source
Expand description

viewer send <path> <body> — POST a JSON body to the viewer’s HTTP server and return its (status, body). Bypasses the SDK’s fire-and-forget viewer client because callers want to see the response synchronously.

Address/signature resolution lives in Context::viewer_client() (config viewer.address, else the viewer spawn flow’s published lock URL; signature env VIEWER_SIGNATURE, else viewer.signature). Non-2xx status codes are not an error; the response is returned as-is with the status set on the Response.

Modules§

request_schema
response_schema

Functions§

execute