[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package s9e\TextFormatter 5 * @copyright Copyright (c) 2010-2022 The s9e authors 6 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 7 */ 8 namespace s9e\TextFormatter\Utils\Http; 9 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 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |