🚀 Hostinger Optimized
🖥️ Server: Apache
💻 System: Linux webm015.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
👤 User: stakrfrcol (69043)
🐘 PHP: 8.3.31
🚫 Disabled: _dyuweyrj4,_dyuweyrj4r,dl

💻 Terminal

📁 /home/stakrfrcol/agency
$

📄 RequestInterface.php

📁 Path: /home/stakrfrcol/dolibarr/htdocs/includes/sabre/sabre/http/lib/RequestInterface.php
📊 Size: 2.66 KB
🔒 Perm: 0604
📝 MIME: text/x-php
<?php

declare(strict_types=1);

namespace Sabre\HTTP;

/**
 * The RequestInterface represents a HTTP request.
 *
 * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
 * @author Evert Pot (http://evertpot.com/)
 * @license http://sabre.io/license/ Modified BSD License
 */
interface RequestInterface extends MessageInterface
{
    /**
     * Returns the current HTTP method.
     */
    public function getMethod(): string;

    /**
     * Sets the HTTP method.
     */
    public function setMethod(string $method);

    /**
     * Returns the request url.
     */
    public function getUrl(): string;

    /**
     * Sets the request url.
     */
    public function setUrl(string $url);

    /**
     * Returns the absolute url.
     */
    public function getAbsoluteUrl(): string;

    /**
     * Sets the absolute url.
     */
    public function setAbsoluteUrl(string $url);

    /**
     * Returns the current base url.
     */
    public function getBaseUrl(): string;

    /**
     * Sets a base url.
     *
     * This url is used for relative path calculations.
     *
     * The base url should default to /
     */
    public function setBaseUrl(string $url);

    /**
     * Returns the relative path.
     *
     * This is being calculated using the base url. This path will not start
     * with a slash, so it will always return something like
     * 'example/path.html'.
     *
     * If the full path is equal to the base url, this method will return an
     * empty string.
     *
     * This method will also urldecode the path, and if the url was encoded as
     * ISO-8859-1, it will convert it to UTF-8.
     *
     * If the path is outside of the base url, a LogicException will be thrown.
     */
    public function getPath(): string;

    /**
     * Returns the list of query parameters.
     *
     * This is equivalent to PHP's $_GET superglobal.
     */
    public function getQueryParameters(): array;

    /**
     * Returns the POST data.
     *
     * This is equivalent to PHP's $_POST superglobal.
     */
    public function getPostData(): array;

    /**
     * Sets the post data.
     *
     * This is equivalent to PHP's $_POST superglobal.
     *
     * This would not have been needed, if POST data was accessible as
     * php://input, but unfortunately we need to special case it.
     */
    public function setPostData(array $postData);

    /**
     * Returns an item from the _SERVER array.
     *
     * If the value does not exist in the array, null is returned.
     *
     * @return string|null
     */
    public function getRawServerValue(string $valueName);

    /**
     * Sets the _SERVER array.
     */
    public function setRawServerData(array $data);
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨