MetadataParserTrait
Table of Contents
- extractHeader() : mixed
- Extract a single header from the response into the result.
- extractHeaders() : mixed
- Extract a map of headers with an optional prefix from the response.
- extractStatus() : mixed
- Places the status code of the response into the result array.
Methods
extractHeader()
Extract a single header from the response into the result.
protected
extractHeader(mixed $name, Shape $shape, ResponseInterface $response, mixed &$result) : mixed
Parameters
- $name : mixed
- $shape : Shape
- $response : ResponseInterface
- $result : mixed
Return values
mixed —extractHeaders()
Extract a map of headers with an optional prefix from the response.
protected
extractHeaders(mixed $name, Shape $shape, ResponseInterface $response, mixed &$result) : mixed
Parameters
- $name : mixed
- $shape : Shape
- $response : ResponseInterface
- $result : mixed
Return values
mixed —extractStatus()
Places the status code of the response into the result array.
protected
extractStatus(mixed $name, ResponseInterface $response, array<string|int, mixed> &$result) : mixed
Parameters
- $name : mixed
- $response : ResponseInterface
- $result : array<string|int, mixed>