GoLang Yaf_Response_Abstract::clearBody

request it (102)
GoLang replacement for PHP's Yaf_Response_Abstract::clearBody [edit | history]



Do you know a GoLang replacement for PHP's Yaf_Response_Abstract::clearBody? Write it!

PHP Yaf_Response_Abstract::clearBody

PHP original manual for Yaf_Response_Abstract::clearBody [ show | php.net ]

Yaf_Response_Abstract::clearBody

(Yaf >=1.0.0)

Yaf_Response_Abstract::clearBodyDiscard all exists response body

Description

public bool Yaf_Response_Abstract::clearBody ([ string $key ] )

Clear existsed content

Parameters

key

the content key, if you don't specific, then all contents will be cleared.

Note:

this parameter is introduced as of 2.2.0

Return Values

See Also