HTTPRequest::setup PHP Method

setup() public method

public setup ( $event, $args )
    public function setup($event, $args)
    {
        switch ($event) {
            case 'set_sock_cb':
                $this->send_cb = $args[0];
                $this->read_cb = $args[1];
                $this->close_cb = $args[2];
                return 'wait_for_request_line';
                break;
            default:
                JAXLLogger::warning("uncatched {$event}");
                return 'setup';
        }
    }