nsmcp::HttpTransport method response (public)

 <instance of nsmcp::HttpTransport[i]> response status body \
    [ headers ]

Defined in /usr/local/ns/tcl/nsmcp/transport.tcl

Construct an internal HTTP response descriptor. Keep the status, serialized body and header dictionary together for the server adapter.

Parameters:
status (required)
HTTP response status.
body (required)
Serialized HTTP or JSON-RPC request body.
headers (optional)
HTTP header dictionary using lower-case field names.
Returns:
The response dictionary with status, body and headers.

Testcases:
No testcase defined.
[ show source ]
Show another procedure: