PHP Class Mongrel2\Connection

Show file Open project: winks/m2php Class Usage Examples

Public Methods

Method Description
__construct ( $sender_id, $sub_addr, $pub_addr )
deliver ( $uuid, $idents, $data )
deliver_http ( $uuid, $idents, $body, $code = 200, $status = "OK", $headers = null )
deliver_json ( $uuid, $idents, $data )
recv ( )
recv_json ( )
reply ( $req, $msg )
reply_http ( $req, $body, $code = 200, $status = "OK", $headers = null )
reply_json ( $req, $data )
send ( $uuid, $conn_id, $msg )

Method Details

__construct() public method

public __construct ( $sender_id, $sub_addr, $pub_addr )

deliver() public method

public deliver ( $uuid, $idents, $data )

deliver_http() public method

public deliver_http ( $uuid, $idents, $body, $code = 200, $status = "OK", $headers = null )

deliver_json() public method

public deliver_json ( $uuid, $idents, $data )

recv() public method

public recv ( )

recv_json() public method

public recv_json ( )

reply() public method

public reply ( $req, $msg )

reply_http() public method

public reply_http ( $req, $body, $code = 200, $status = "OK", $headers = null )

reply_json() public method

public reply_json ( $req, $data )

send() public method

public send ( $uuid, $conn_id, $msg )