The OpenD Programming Language

Cgi.postBody

This holds the posted body data if it has not been parsed into post and postArray.

It is intended to be used for JSON and XML request content types, but also may be used for other content types your application can handle. But it will NOT be populated for content types application/x-www-form-urlencoded or multipart/form-data, since those are parsed into the post and postArray members.

Remember that anything beyond your maxContentLength param when setting up GenericMain, etc., will be discarded to the client with an error. This helps keep this array from being exploded in size and consuming all your server's memory (though it may still be possible to eat excess ram from a concurrent client in certain build modes.)

class Cgi
immutable
string postBody;

Meta

History

Added January 5, 2021 Documented February 21, 2023 (dub v11.0)