Flow PHP

HttpEncoder implements Encoder

FinalYes

Decodes an HTTP exchange into raw row values. The response/request body is decoded once, content-type aware, into a navigable nested map (JSON via json_decode, XML via {@see XMLConverter}); the extractor's Hydrator types the Row from it and pagination reads the same map.

Tags
implements

Interfaces

Encoder

Methods

decode()  : array<int, RawRowValues>
encode()  : 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>
On this page

Search results