web\Request getContentType()

getContentType() public method

Returns request content-type The Content-Type header field indicates the MIME type of the data contained in getRawBody() or, in the case of the HEAD method, the media type that would have been sent had the request been a GET.

For the MIME-types the user expects in response, see $acceptableContentTypes.

public string getContentType ( )
return string

Request content-type. Null is returned if this information is not available.

doc_Yii
2016-10-30 17:15:46
Comments
Leave a Comment

Please login to continue.