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
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
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