\Psc\Library\Net\Http\Server\UploadMultipartHandler

Http上传解析器

Summary

Methods
Properties
Constants
__construct()
tick()
cancel()
No public properties found
STATUS_WAIT
STATUS_TRAN
No protected methods found
No protected properties found
N/A
parseFileInfo()
parseTextContent()
processTransmitting()
$status
$task
$buffer
$boundary
N/A

Constants

STATUS_WAIT

STATUS_WAIT = 0

STATUS_TRAN

STATUS_TRAN = 1

Properties

$status

$status : int

Type

int

$task

$task : array

Type

array

$buffer

$buffer : string

Type

string

$boundary

$boundary : string

Type

string

Methods

__construct()

__construct(string  $boundary) : mixed

上传文件构造

Parameters

string $boundary

Returns

mixed —

tick()

tick(string  $content) : array

上下文推入

Parameters

string $content

Throws

\Psc\Library\Net\Http\Server\Exception\FormatException

Returns

array —

cancel()

cancel() : void

parseFileInfo()

parseFileInfo() : array|false

Throws

\Psc\Library\Net\Http\Server\Exception\FormatException

Returns

array|false —

parseTextContent()

parseTextContent() : string|false

解析文本内容

Returns

string|false —

processTransmitting()

processTransmitting() : bool

处理传输中

Returns

bool —