Verzeichnisstruktur phpBB-3.3.15
- Veröffentlicht
- 28.08.2024
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. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
Client.php
01 <?php
02
03 /**
04 * @package s9e\TextFormatter
05 * @copyright Copyright (c) 2010-2022 The s9e authors
06 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
07 */
08 namespace s9e\TextFormatter\Utils\Http;
09
10 abstract class Client
11 {
12 /**
13 * @var bool Whether to verify the peer's SSL certificate
14 */
15 public $sslVerifyPeer = false;
16
17 /**
18 * @var integer Request timeout
19 */
20 public $timeout = 10;
21
22 /**
23 * Execute a GET request and return the response's body
24 *
25 * @param string $url Request URL
26 * @param array $options Request options
27 * @return string|bool Response content or FALSE
28 */
29 abstract public function get($url, array $options = []);
30
31 /**
32 * Execute a POST request and return the response's body
33 *
34 * @param string $url Request URL
35 * @param array $options Request options
36 * @param string $body Request body
37 * @return string|bool Response content or FALSE
38 */
39 abstract public function post($url, array $options = [], $body = '');
40 }