StreamedPHPResponse
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Parameters
headers: ReadableStream<Uint8Array>
stdout: ReadableStream<Uint8Array>
stderr: ReadableStream<Uint8Array>
exitCode: Promise<number>
Returns StreamedPHPResponse
Properties
readonlyexitCode
readonlystderr
Stderr contents, if any.
readonlystdout
Response body. Contains the output from echo
,
print
, inline HTML etc.
Accessors
finished
Resolves when the response has finished processing – either successfully or not.
Returns Promise<void>
headers
Resolves once HTTP headers are available.
Returns Promise<Record<string, string[]>>
httpStatusCode
Resolves once HTTP status code is available.
Returns Promise<number>
stderrText
Exposes the stderr bytes as they're produced by the PHP instance
Returns Promise<string>
stdoutText
Exposes the stdout bytes as they're produced by the PHP instance
Returns Promise<string>
Methods
ok
True if the response is successful (HTTP status code 200-399), false otherwise.
Returns Promise<boolean>
The exit code of the script.
0
is a success, anything else is an error.