Home
last modified time | relevance | path

Searched refs:headers (Results 1 – 25 of 37) sorted by relevance

12

/dokuwiki/_test/tests/inc/
H A Dmailer.test.php35 $headers = $mail->prop('headers');
36 $this->assertArrayNotHasKey('X-Dokuwiki-User',$headers);
40 $headers = $mail->prop('headers');
41 $this->assertArrayHasKey('X-Dokuwiki-User',$headers);
48 $headers = $mail->prop('headers');
49 $this->assertArrayHasKey('X-Mailer',$headers);
50 $this->assertArrayHasKey('X-Dokuwiki-Title',$headers);
51 $this->assertArrayHasKey('X-Dokuwiki-Server',$headers);
52 $this->assertArrayHasKey('X-Auto-Response-Suppress',$headers);
53 $this->assertArrayHasKey('List-Id',$headers);
[all …]
/dokuwiki/_test/core/
H A DTestResponse.php14 protected $headers; variable in TestResponse
29 function __construct($content, $headers, $data = array()) { argument
31 $this->headers = $headers;
50 return $this->headers;
61 foreach($this->headers as $header) {
79 $headers = $this->getHeader('Status');
82 if($headers) {
84 $status = is_array($headers) ? array_pop($headers) : $headers;
/dokuwiki/vendor/simplepie/simplepie/src/HTTP/
H A DRawTextResponse.php33 private $headers = []; variable in SimplePie\\HTTP\\RawTextResponse
64 return $this->headers;
69 return isset($this->headers[strtolower($name)]);
74 return isset($this->headers[strtolower($name)]) ? $this->headers[$name] : [];
84 $new->headers = $newHeader + $this->headers;
91 return isset($this->headers[strtolower($name)]) ? implode(", ", $this->headers[$name]) : '';
H A DParser.php47 public $headers = []; variable in SimplePie\\HTTP\\Parser
159 $this->headers = [];
242 $headers = &$this->headers;
243 $headers[$name][] = $value;
247 $headers = &$this->headers;
248 $headers[$name] .= ', ' . $value;
257 $headers = &$this->headers;
258 $headers[$name] = [$value];
262 $headers = &$this->headers;
263 $headers[$name] = $value;
[all …]
H A DClient.php27 public function request(string $method, string $url, array $headers = []): Response; argument
H A DPsr18Client.php75 public function request(string $method, string $url, array $headers = []): Response argument
86 return $this->requestUrl($method, $url, $headers);
95 private function requestUrl(string $method, string $url, array $headers): Response argument
106 foreach ($headers as $name => $value) {
H A DFileClient.php46 public function request(string $method, string $url, array $headers = []): Response argument
62 $headers,
/dokuwiki/inc/
H A Dactions.php21 $headers = [
25 Event::createAndTrigger('ACTION_HEADERS_SEND', $headers, 'act_sendheaders');
29 unset($headers);
41 * @param array $headers The headers that shall be sent
43 function act_sendheaders($headers) argument
45 foreach ($headers as $hdr) header($hdr);
H A DMailer.class.php22 protected $headers = []; variable in Mailer
168 if (isset($this->headers[$header])) unset($this->headers[$header]);
170 $this->headers[$header] = $value;
339 $this->headers['Subject'] = $subject;
380 $headers = '';
437 if ($headers != '') {
438 $headers .= ', ';
440 $headers .= $text . ' ' . $addr;
443 $headers = trim($headers);
444 if (empty($headers)) return false;
[all …]
H A Dauth.php194 $headers = [];
198 $headers = getallheaders();
199 if (is_array($headers)) {
200 $headers = array_change_key_case($headers);
205 if (!$headers) {
208 $headers[strtolower(substr($key, 5))] = $value;
214 if (isset($headers['authorization'])) {
215 [$type, $token] = sexplode(' ', $headers['authorization'], 2);
220 if (isset($headers['x-dokuwiki-token'])) {
221 $token = $headers['x-dokuwiki-token'];
/dokuwiki/inc/Action/
H A DExport.php47 $headers = [];
50 $headers['X-Robots-Tag'] = 'noindex';
55 $headers['Content-Type'] = 'text/plain; charset=utf-8';
56 $headers['Content-Disposition'] = 'attachment; filename=' . noNS($ID) . '.txt';
78 $headers['Content-Type'] = 'text/html; charset=utf-8';
86 $headers['Content-Type'] = 'text/html; charset=utf-8';
94 $headers = p_get_metadata($ID, "format $mode");
102 $data['headers'] = $headers;
/dokuwiki/inc/HTTP/
H A DHTTPClient.php32 public $headers = []; variable in dokuwiki\\HTTP\\HTTPClient
72 if (extension_loaded('zlib')) $this->headers['Accept-encoding'] = 'gzip';
73 $this->headers['Accept'] = 'text/xml,application/xml,application/xhtml+xml,' .
75 $this->headers['Accept-Language'] = 'en-us';
173 isset($this->headers['Accept-encoding']) &&
174 $this->headers['Accept-encoding'] == 'gzip'
176 unset($this->headers['Accept-encoding']);
211 $headers = $this->headers;
212 $headers['Host'] = $uri['host']
214 $headers['User-Agent'] = $this->agent;
[all …]
/dokuwiki/_test/tests/lib/exe/
H A Dfetch_statuscodes_external.test.php14 header('X-Test: check headers working');
17 …$this->markTestSkipped('headers not returned, perhaps your sapi does not return headers, try xdebu…
/dokuwiki/vendor/simplepie/simplepie/src/
H A DFile.php46 public $headers = []; variable in SimplePie\\File
89 …public function __construct(string $url, int $timeout = 10, int $redirects = 5, ?array $headers = … argument
108 if (!is_array($headers)) {
109 $headers = [];
115 foreach ($headers as $key => $value) {
162 $this->set_headers($parser->headers);
174 …$this->__construct($location, $timeout, $redirects, $headers, $useragent, $force_fsockopen, $curl_…
220 foreach ($headers as $key => $value) {
236 $this->set_headers($parser->headers);
248 …$this->__construct($location, $timeout, $redirects, $headers, $useragent, $force_fsockopen, $curl_…
[all …]
H A DLocator.php264 $headers = [
269 … $feed = $this->get_http_client()->request(Client::METHOD_GET, $href, $headers);
397 $headers = [
402 $feed = $this->get_http_client()->request(Client::METHOD_GET, $value, $headers);
429 $headers = [
434 $feed = $this->get_http_client()->request(Client::METHOD_GET, $value, $headers);
/dokuwiki/inc/Feed/
H A DFeedParserFile.php32 $this->headers = $this->http->resp_headers;
42 public function headers() function in dokuwiki\\Feed\\FeedParserFile
44 return $this->headers;
/dokuwiki/inc/Subscriptions/
H A DMediaSubscriptionSender.php37 $headers = ['Message-Id' => $this->getMessageID($id, @filemtime($file))];
39 $headers['In-Reply-To'] = $this->getMessageID($id, $rev);
42 $this->send($subscriber_mail, 'upload', $id, $template, $trep, null, $headers);
H A DPageSubscriptionSender.php69 $headers = ['Message-Id' => $this->getMessageID($id)];
71 $headers['In-Reply-To'] = $this->getMessageID($id, $rev);
81 $headers
H A DSubscriptionSender.php56 * @param array $headers Additional mail headers in the form 'name' => 'value'
62 … function send($subscriber_mail, $subject, $context, $template, $trep, $hrep = null, $headers = []) argument
80 foreach ($headers as $header => $value) {
/dokuwiki/vendor/kissifrot/php-ixr/src/Client/
H A DClient.php29 protected $headers = []; variable in IXR\\Client\\Client
76 $this->headers['Host'] = $this->server;
77 $this->headers['Content-Type'] = 'text/xml';
78 $this->headers['User-Agent'] = $this->useragent;
79 $this->headers['Content-Length'] = $length;
81 foreach ($this->headers as $header => $value) {
/dokuwiki/_test/mock/
H A DMailerMock.php12 $this->mails[] = $this->headers;
/dokuwiki/_test/tests/general/
H A Dgeneral_html.test.php45 $http->headers['Content-Type'] = 'text/html; charset=utf-8';
/dokuwiki/
H A DREADME9 See COPYING and file headers for license info
/dokuwiki/_test/tests/test/
H A Dbasic.test.php152 $headers = $response->getHeaders();
153 $this->assertTrue(!empty($headers));
/dokuwiki/inc/parser/
H A Drenderer.php50 protected $headers = []; variable in Doku_Renderer
65 $this->headers = [];
874 return sectionID($title, $this->headers);

12