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
Interfaces
- Encoder
Methods
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>