MediaWiki REL1_34
RequestInterface.php
Go to the documentation of this file.
1<?php
2
31namespace MediaWiki\Rest;
32
33use Psr\Http\Message\StreamInterface;
34use Psr\Http\Message\UriInterface;
35
40 // RequestInterface
41
47 function getMethod();
48
58 function getUri();
59
60 // MessageInterface
61
70
100 function getHeaders();
101
120 function getHeader( $name );
121
130 function hasHeader( $name );
131
151 function getHeaderLine( $name );
152
158 function getBody();
159
160 // ServerRequestInterface
161
171 function getServerParams();
172
183 function getCookieParams();
184
197 function getQueryParams();
198
209
210 // MediaWiki extensions to PSR-7
211
217 function getPathParams();
218
229 function getPathParam( $name );
230
237 function setPathParams( $params );
238
244 function getCookiePrefix();
245
255 function getCookie( $name, $default = null );
256
264 function getPostParams();
265}
A request interface similar to PSR-7's ServerRequestInterface.
getCookiePrefix()
Get the current cookie prefix.
getPathParams()
Get the parameters derived from the path template match.
getUploadedFiles()
Retrieve normalized file upload data.
getQueryParams()
Retrieve query string arguments.
getMethod()
Retrieves the HTTP method of the request.
getBody()
Gets the body of the message.
getUri()
Retrieves the URI instance.
getCookie( $name, $default=null)
Add the cookie prefix to a specified cookie name and get the value of the resulting prefixed cookie.
getHeaders()
Retrieves all message header values.
getServerParams()
Retrieve server parameters.
getHeaderLine( $name)
Retrieves a comma-separated string of the values for a single header.
setPathParams( $params)
Erase all path parameters from the object and set the parameter array to the one specified.
getPostParams()
Retrieve POST form parameters.
getPathParam( $name)
Retrieve a single path parameter.
getCookieParams()
Retrieve cookies.
hasHeader( $name)
Checks if a header exists by the given case-insensitive name.
getHeader( $name)
Retrieves a message header value by the given case-insensitive name.
getProtocolVersion()
Retrieves the HTTP protocol version as a string.