libraries:restwebservice:restrequestclass:getcontenttype
RestRequest::getContentType()
Definition
Returns the content type, sent by the request.
String getContentType ( )
Returns
- String
Transmitted HTTP content type
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" $ContentType = $Request->getContentType(); // "text/plain"
libraries/restwebservice/restrequestclass/getcontenttype.txt · Last modified: 2022/12/21 19:36 by michael.pohl