HTTPRequest::headers_received PHP Method

headers_received() public method

headers and may be body received
public headers_received ( $event, $args )
    public function headers_received($event, $args)
    {
        switch ($event) {
            case 'empty_line':
                return 'headers_received';
                break;
            default:
                if (substr($event, 0, 5) == 'send_') {
                    $protected = '_' . $event;
                    if (method_exists($this, $protected)) {
                        call_user_func_array(array(&$this, $protected), $args);
                        return 'headers_received';
                    } else {
                        JAXLLogger::debug("non-existant method {$event} called");
                        return 'headers_received';
                    }
                } elseif (isset($this->shortcuts[$event])) {
                    return $this->handle_shortcut($event, $args);
                } else {
                    JAXLLogger::warning("uncatched {$event} " . $args[0]);
                    return 'headers_received';
                }
        }
    }