class Request (View source)

Properties

$fd
$streamId
$header
$server
$cookie
$get
$files
$post
$tmpfiles

Methods

__destruct()

No description

string|false
getContent()

Get the request content, kind of like function call fopen('php://input').

string|false
rawContent()

Get the request content, kind of like function call fopen('php://input').

mixed
getData()

No description

static mixed
create(mixed|null $options = null)

No description

mixed
parse(mixed $data)

No description

mixed
isCompleted()

No description

mixed
getMethod()

No description

Details

__destruct()

No description

string|false getContent()

Since: 4.5.0

Get the request content, kind of like function call fopen('php://input').

This method has an alias of \Swoole\Http\Request::rawContent().

Return Value

string|false

Return the request content back; return FALSE when error happens.

See also

Request::rawContent

string|false rawContent()

Get the request content, kind of like function call fopen('php://input').

Alias of method \Swoole\Http\Request::getContent().

Return Value

string|false

Return the request content back; return FALSE when error happens.

See also

Request::getContent

mixed getData()

No description

Return Value

mixed

static mixed create(mixed|null $options = null)

No description

Parameters

mixed|null $options

Return Value

mixed

mixed parse(mixed $data)

No description

Parameters

mixed $data

Return Value

mixed

mixed isCompleted()

No description

Return Value

mixed

mixed getMethod()

No description

Return Value

mixed