Slick.php
/**
     * Responds (acks) to a Slack request.
     *
     * @param string $ack
     * @throws Exception if headers have already been sent.
     */
Responds (acks) to a Slack request.
@param string $ack
@throws Exception if headers have already been sent.
Responds ( acks ) to a Slack request . @param string $ack @throws Exception if headers have already been sent .
public static function ack(string $ack): void
    {
        if (headers_sent()) {
            self::err('ack', 'HTTP headers already sent', 500);
        }
        http_response_code(200);
        $contentLength = strlen($ack);
        if ($contentLength > 0) {
            header('Content-Type: application/json');
            header('Content-Length: ' . $contentLength);
        }
        echo $ack;
    }
public static function ack ( string $ ack ) : void { if ( headers_sent ( ) ) { self :: err ( 'ack' , 'HTTP headers already sent' , 500 ) ; } http_response_code ( 200 ) ; $ contentLength = strlen ( $ ack ) ; if ( $ contentLength > 0 ) { header ( 'Content-Type: application/json' ) ; header ( 'Content-Length: ' . $ contentLength ) ; } echo $ ack ; }
Responds (acks) to a Slack request.
Responds ( acks ) to a Slack request .