RequestParserInterface
in
Interface for classes that parse the raw request body into a parameters array.
Tags
Table of Contents
Methods
- parse() : array<string|int, mixed>
- Parses a HTTP request body.
Methods
parse()
Parses a HTTP request body.
public
parse(string $rawBody, string $contentType) : array<string|int, mixed>
Parameters
- $rawBody : string
-
the raw HTTP request body.
- $contentType : string
-
the content type specified for the request body.
Return values
array<string|int, mixed> —parameters parsed from the request body