|
| __construct (Config $config, PermissionManager $permissionManager, RevisionLookup $revisionLookup, TitleFormatter $titleFormatter, VirtualRESTServiceClient $virtualRESTServiceClient) |
|
| run (string $title) |
|
Public Member Functions inherited from MediaWiki\Rest\Handler\LatestPageContentHandler |
| __construct (Config $config, PermissionManager $permissionManager, RevisionLookup $revisionLookup, TitleFormatter $titleFormatter) |
|
| getParamSettings () |
| Fetch ParamValidator settings for parameters.
|
|
| needsWriteAccess () |
| Indicates whether this route requires write access.
|
|
Public Member Functions inherited from MediaWiki\Rest\SimpleHandler |
| execute () |
| Execute the handler.
|
|
Public Member Functions inherited from MediaWiki\Rest\Handler |
| applyConditionalResponseHeaders (ResponseInterface $response) |
| Modify the response, adding Last-Modified and ETag headers as indicated the values previously returned by ETag and getLastModified().
|
|
| checkPreconditions () |
| Check the conditional request headers and generate a response if appropriate.
|
|
| getBodyValidator ( $contentType) |
| Fetch the BodyValidator.
|
|
| getConfig () |
| Get the configuration array for the current route.
|
|
| getRequest () |
| Get the current request.
|
|
| getResponseFactory () |
| Get the ResponseFactory which can be used to generate Response objects.
|
|
| getValidatedBody () |
| Fetch the validated body.
|
|
| getValidatedParams () |
| Fetch the validated parameters.
|
|
| init (Router $router, RequestInterface $request, array $config, ResponseFactory $responseFactory, HookContainer $hookContainer) |
| Initialise with dependencies from the Router.
|
|
| needsReadAccess () |
| Indicates whether this route requires read rights.
|
|
| validate (Validator $restValidator) |
| Validate the request parameters/attributes and body.
|
|
Definition at line 34 of file PageHTMLHandler.php.
◆ __construct()
◆ constructHtmlUrl()
MediaWiki\Rest\Handler\PageHTMLHandler::constructHtmlUrl |
( |
| ) |
|
|
private |
◆ fetch200HtmlFromRESTBase()
MediaWiki\Rest\Handler\PageHTMLHandler::fetch200HtmlFromRESTBase |
( |
LinkTarget |
$title | ) |
|
|
private |
◆ fetchHtmlFromRESTBase()
MediaWiki\Rest\Handler\PageHTMLHandler::fetchHtmlFromRESTBase |
( |
LinkTarget |
$title | ) |
|
|
private |
◆ getETag()
MediaWiki\Rest\Handler\PageHTMLHandler::getETag |
( |
| ) |
|
|
protected |
Returns an ETag representing a page's source.
The ETag assumes a page's source has changed if the latest revision of a page has been made private, un-readable for another reason, or a newer revision exists.
- Returns
- string|null
- Exceptions
-
Reimplemented from MediaWiki\Rest\Handler.
Definition at line 189 of file PageHTMLHandler.php.
◆ getHtmlType()
MediaWiki\Rest\Handler\PageHTMLHandler::getHtmlType |
( |
| ) |
|
|
private |
◆ getLastModified()
MediaWiki\Rest\Handler\PageHTMLHandler::getLastModified |
( |
| ) |
|
|
protected |
◆ run()
MediaWiki\Rest\Handler\PageHTMLHandler::run |
( |
string |
$title | ) |
|
◆ $htmlResponse
array MediaWiki\Rest\Handler\PageHTMLHandler::$htmlResponse |
|
private |
◆ $restClient
◆ MAX_AGE_200
const MediaWiki\Rest\Handler\PageHTMLHandler::MAX_AGE_200 = 5 |
|
private |
The documentation for this class was generated from the following file: