Documentation

Body

Table of Contents

$body  : array<string|int, string>
$contentType  : string
$files  : array<string|int, File>
__construct()  : mixed
getBody()  : array<string|int, string>
Returns requests body
getBodyData()  : mixed
Returns body data by key
getContentType()  : string
Returns body content type
getFiles()  : array<string|int, File>
Returns files
setBody()  : void
Parse request body
setContentType()  : void
Sets request content type
setFiles()  : void
Sets request files to instance

Properties

$body

private array<string|int, string> $body

$contentType

private string $contentType

$files

private array<string|int, File> $files = []

Methods

__construct()

public __construct() : mixed
Return values
mixed

getBody()

Returns requests body

public getBody() : array<string|int, string>
Return values
array<string|int, string>

getBodyData()

Returns body data by key

public getBodyData(string $key[, mixed $default = null ]) : mixed
Parameters
$key : string
$default : mixed = null
Return values
mixed

getContentType()

Returns body content type

public getContentType() : string
Return values
string

getFiles()

Returns files

public getFiles() : array<string|int, File>
Return values
array<string|int, File>

setBody()

Parse request body

private setBody() : void
Return values
void

setContentType()

Sets request content type

private setContentType() : void
Return values
void

setFiles()

Sets request files to instance

private setFiles() : void
Return values
void

Search results