Verzeichnisstruktur phpBB-3.2.0


Veröffentlicht
06.01.2017

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

      (Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

RequestInterface.php

Zuletzt modifiziert: 09.10.2024, 12:57 - Dateigröße: 3.04 KiB


 001  <?php
 002  namespace GuzzleHttp\Message;
 003   
 004  use GuzzleHttp\Event\HasEmitterInterface;
 005  use GuzzleHttp\Query;
 006   
 007  /**
 008   * Generic HTTP request interface
 009   */
 010  interface RequestInterface extends MessageInterface, HasEmitterInterface
 011  {
 012      /**
 013       * Sets the request URL.
 014       *
 015       * The URL MUST be a string, or an object that implements the
 016       * `__toString()` method.
 017       *
 018       * @param string $url Request URL.
 019       *
 020       * @throws \InvalidArgumentException If the URL is invalid.
 021       */
 022      public function setUrl($url);
 023   
 024      /**
 025       * Gets the request URL as a string.
 026       *
 027       * @return string Returns the URL as a string.
 028       */
 029      public function getUrl();
 030   
 031      /**
 032       * Get the resource part of the the request, including the path, query
 033       * string, and fragment.
 034       *
 035       * @return string
 036       */
 037      public function getResource();
 038   
 039      /**
 040       * Get the collection of key value pairs that will be used as the query
 041       * string in the request.
 042       *
 043       * @return Query
 044       */
 045      public function getQuery();
 046   
 047      /**
 048       * Set the query string used by the request
 049       *
 050       * @param array|Query $query Query to set
 051       */
 052      public function setQuery($query);
 053   
 054      /**
 055       * Get the HTTP method of the request.
 056       *
 057       * @return string
 058       */
 059      public function getMethod();
 060   
 061      /**
 062       * Set the HTTP method of the request.
 063       *
 064       * @param string $method HTTP method
 065       */
 066      public function setMethod($method);
 067   
 068      /**
 069       * Get the URI scheme of the request (http, https, etc.).
 070       *
 071       * @return string
 072       */
 073      public function getScheme();
 074   
 075      /**
 076       * Set the URI scheme of the request (http, https, etc.).
 077       *
 078       * @param string $scheme Scheme to set
 079       */
 080      public function setScheme($scheme);
 081   
 082      /**
 083       * Get the port scheme of the request (e.g., 80, 443, etc.).
 084       *
 085       * @return int
 086       */
 087      public function getPort();
 088   
 089      /**
 090       * Set the port of the request.
 091       *
 092       * Setting a port modifies the Host header of a request as necessary.
 093       *
 094       * @param int $port Port to set
 095       */
 096      public function setPort($port);
 097   
 098      /**
 099       * Get the host of the request.
 100       *
 101       * @return string
 102       */
 103      public function getHost();
 104   
 105      /**
 106       * Set the host of the request including an optional port.
 107       *
 108       * Including a port in the host argument will explicitly change the port of
 109       * the request. If no port is found, the default port of the current
 110       * request scheme will be utilized.
 111       *
 112       * @param string $host Host to set (e.g. www.yahoo.com, www.yahoo.com:80)
 113       */
 114      public function setHost($host);
 115   
 116      /**
 117       * Get the path of the request (e.g. '/', '/index.html').
 118       *
 119       * @return string
 120       */
 121      public function getPath();
 122   
 123      /**
 124       * Set the path of the request (e.g. '/', '/index.html').
 125       *
 126       * @param string|array $path Path to set or array of segments to implode
 127       */
 128      public function setPath($path);
 129   
 130      /**
 131       * Get the request's configuration options.
 132       *
 133       * @return \GuzzleHttp\Collection
 134       */
 135      public function getConfig();
 136  }
 137