User Tools

Site Tools


libraries:restwebservice:restrequestclass:getcontent

RestRequest::getContent()


Definition

Returns the content as it was sent by the client via request.

String getContent ( )

Returns

  • String
    Content transmitted by the client.

Example

$Request = new RestRequest();
 
// Called endpoint is: [PUT] https://www.domain.com/webservice/accounting/booking
// Content is:         "id:5,account:1234,name:Mr. Smith,amount:592.30"
 
$Content = $Request->getContent();  // "id:5,account:1234,name:Mr. Smith,amount:592.30"
libraries/restwebservice/restrequestclass/getcontent.txt · Last modified: 2022/12/21 19:38 by michael.pohl