Skip to main content
Table of Contents

TTMSMCPHTTPServerRequest.PostStream Property

The request body as a stream, or nil when the request has no body. Read-only.

API unit family: TMS.MCP.HTTPServer Declaring type: TTMSMCPHTTPServerRequest Type: TStream

Syntax

TMS.MCP.HTTPServer.hppPascalC++
property PostStream: TStream;
__property System::Classes::TStream* PostStream = {read=GetPostStream};

Remarks

Owned by the server and valid only while the handler runs. Read it once and keep what you need: the position is not reset for you, so a second read may see nothing. Decode it as UTF-8 unless the content type says otherwise.