Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques statiques | |
static | fromString (string $message) |
static | fromStream (StreamInterface $stream) |
static | toString (RequestInterface $request) |
Fonctions membres privées statiques | |
static | getRequestLine (StreamInterface $stream) |
static | createUriFromRequestTarget (string $requestTarget) |
Membres hérités additionnels | |
Champs de données hérités de AbstractSerializer | |
const | CR = "\r" |
const | EOL = "\r\n" |
const | LF = "\n" |
Fonctions membres protégées statiques hérités de AbstractSerializer | |
static | getLine (StreamInterface $stream) |
static | splitStream (StreamInterface $stream) |
static | serializeHeaders (array $headers) |
static | filterHeader ($header) |
Serialize (cast to string) or deserialize (cast string to Request) messages.
This class provides functionality for serializing a RequestInterface instance to a string, as well as the reverse operation of creating a Request instance from a string/stream representing a message.
|
staticprivate |
Create and return a Uri instance based on the provided request target.
If the request target is of authority or asterisk form, an empty Uri instance is returned; otherwise, the value is used to create and return a new Uri instance.
Références Laminas\Diactoros\$requestTarget.
|
static |
Deserialize a request stream to a request instance.
Exception |
Références Laminas\Diactoros\$method, Laminas\Diactoros\$requestTarget, Laminas\Diactoros\$stream, Laminas\Diactoros\$uri, et $version.
|
static |
Deserialize a request string to a request instance.
Internally, casts the message to a stream and invokes fromStream().
Exception |
Références $message, et Laminas\Diactoros\$stream.
|
staticprivate |
Retrieve the components of the request line.
Retrieves the first line of the stream and parses it, raising an exception if it does not follow specifications; if valid, returns a list with the method, target, and version, in that order.
Exception |
Références Laminas\Diactoros\$stream, et SerializationException\forInvalidRequestLine().
|
static |
Serialize a request message to a string.
Références $format, MessageInterface\getBody(), MessageInterface\getHeaders(), RequestInterface\getMethod(), MessageInterface\getProtocolVersion(), et RequestInterface\getRequestTarget().