PHP Class HTTPRequest, JAXL

Inheritance: extends Codendi_Request
Afficher le fichier Open project: jaxl/JAXL Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode 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

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

Method Details

__construct() public méthode

public __construct ( $sock, $addr )

__destruct() public méthode

public __destruct ( )

closed() public méthode

public closed ( $event, $args )

handle_invalid_state() public méthode

public handle_invalid_state ( $r )

handle_shortcut() protected méthode

shortcut handler
protected handle_shortcut ( $event, $args )

headers_received() public méthode

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

maybe_headers_received() public méthode

public maybe_headers_received ( $event, $args )

send_body() protected méthode

protected send_body ( $body )

send_header() protected méthode

protected send_header ( $k, $v )

send_headers() protected méthode

protected send_headers ( $code, $headers )

send_line() protected méthode

protected send_line ( $code )

send_response() protected méthode

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

set_header() protected méthode

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

setup() public méthode

public setup ( $event, $args )

state() public méthode

public state ( )

wait_for_body() public méthode

public wait_for_body ( $event, $args )

wait_for_headers() public méthode

public wait_for_headers ( $event, $args )

wait_for_request_line() public méthode

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