aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Http/WellKnown/IRequestContext.php
blob: 241a9069904a95b2d2654c1c624915f1e92166fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

declare(strict_types=1);

/**
 * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
namespace OCP\Http\WellKnown;

use OCP\IRequest;

/**
 * The context object for \OCP\Http\IWellKnownHandler::handle
 *
 * Objects of this type will transport any optional information, e.g. the request
 * object through which the app well known handler can obtain URL parameters
 *
 * @since 21.0.0
 */
interface IRequestContext {
	/**
	 * @return IRequest
	 *
	 * @since 21.0.0
	 */
	public function getHttpRequest(): IRequest;
}