Flow PHP

HttpEncoder implements Encoder

FinalYes

A row carries the body as raw text, so response_body holds one type whatever the content type is.

Pagination, which needs to navigate into a structured body, calls structuredBody() instead.

Tags
implements

Interfaces

Encoder

Methods

decode()  : array<int, RawRowValues>
encode()  : array<string|int, mixed>
structuredBody()  : array<string|int, mixed>

Methods

decode()

public decode(array<int, HttpExchange$batch) : array<int, RawRowValues>
Parameters
$batch : array<int, HttpExchange>
Tags
throws
RuntimeException
Return values
array<int, RawRowValues>

encode()

public encode(array<int, TypedRowValues$batch) : array<string|int, mixed>
Parameters
$batch : array<int, TypedRowValues>
Return values
array<string|int, mixed>

structuredBody()

public structuredBody(ResponseInterface $response) : array<string|int, mixed>
Parameters
$response : ResponseInterface
Return values
array<string|int, mixed>
On this page

Search results