Verzeichnisstruktur phpBB-3.1.0
- Veröffentlicht
- 27.10.2014
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 |
AbstractClient.php
01 <?php
02 namespace OAuth\Common\Http\Client;
03
04 /**
05 * Abstract HTTP client
06 */
07 abstract class AbstractClient implements ClientInterface
08 {
09 protected $maxRedirects = 5;
10 protected $timeout = 15;
11
12 /**
13 * @param int $maxRedirects Maximum redirects for client
14 * @return ClientInterface
15 */
16 public function setMaxRedirects($redirects)
17 {
18 $this->maxRedirects = $redirects;
19 return $this;
20 }
21
22 /**
23 * @param int $timeout Request timeout time for client in seconds
24 * @return ClientInterface
25 */
26 public function setTimeout($timeout)
27 {
28 $this->timeout = $timeout;
29 return $this;
30 }
31
32 /**
33 * @param array $headers
34 * @return void
35 */
36 public function normalizeHeaders(&$headers)
37 {
38 // Normalize headers
39 array_walk( $headers,
40 function(&$val, &$key)
41 {
42 $key = ucfirst( strtolower($key) );
43 $val = ucfirst( strtolower($key) ) . ': ' . $val;
44 }
45 );
46 }
47 }
48