PHP Class HTTPRequest, JAXL

Inheritance: extends Codendi_Request
ファイルを表示 Open project: jaxl/JAXL Class Usage Examples

Public Properties

Property Type Description
$body
$expect request header has been seen
$headers headers and body
$ip
$method
$multipart header already seen
$path
$port
$query
$recvd_body_len
$resource
$sock peer identifier
$version request line

Public Methods

Method Description
__construct ( $sock, $addr )
__destruct ( )
closed ( $event, $args )
handle_invalid_state ( $r )
headers_received ( $event, $args ) headers and may be body received
maybe_headers_received ( $event, $args )
setup ( $event, $args )
state ( )
wait_for_body ( $event, $args )
wait_for_headers ( $event, $args )
wait_for_request_line ( $event, $args )

Protected Methods

Method Description
handle_shortcut ( $event, $args ) shortcut handler
send_body ( $body )
send_header ( $k, $v )
send_headers ( $code, $headers )
send_line ( $code )
send_response ( $code, array $headers = [], $body = null )
set_header ( $k, $v ) called internally for every header received

Private Methods

Method Description
close ( )
line ( $method, $resource, $version ) initializes status line elements
parse_shortcut_args ( $args )
read ( )
send ( $raw )

Method Details

__construct() public method

public __construct ( $sock, $addr )

__destruct() public method

public __destruct ( )

closed() public method

public closed ( $event, $args )

handle_invalid_state() public method

public handle_invalid_state ( $r )

handle_shortcut() protected method

shortcut handler
protected handle_shortcut ( $event, $args )

headers_received() public method

headers and may be body received
public headers_received ( $event, $args )

maybe_headers_received() public method

public maybe_headers_received ( $event, $args )

send_body() protected method

protected send_body ( $body )

send_header() protected method

protected send_header ( $k, $v )

send_headers() protected method

protected send_headers ( $code, $headers )

send_line() protected method

protected send_line ( $code )

send_response() protected method

protected send_response ( $code, array $headers = [], $body = null )
$headers array

set_header() protected method

called internally for every header received
protected set_header ( $k, $v )

setup() public method

public setup ( $event, $args )

state() public method

public state ( )

wait_for_body() public method

public wait_for_body ( $event, $args )

wait_for_headers() public method

public wait_for_headers ( $event, $args )

wait_for_request_line() public method

public wait_for_request_line ( $event, $args )

Property Details

$body public_oe property

public $body

$expect public_oe property

request header has been seen
public $expect

$headers public_oe property

headers and body
public $headers

$ip public_oe property

public $ip

$method public_oe property

public $method

$multipart public_oe property

header already seen
public $multipart

$path public_oe property

public $path

$port public_oe property

public $port

$query public_oe property

public $query

$recvd_body_len public_oe property

public $recvd_body_len

$resource public_oe property

public $resource

$sock public_oe property

peer identifier
public $sock

$version public_oe property

request line
public $version