MCPcopy Create free account
hub / github.com/Rello/analytics / buildHtmlRequestHeaders

Method buildHtmlRequestHeaders

lib/Datasource/Github.php:370–381  ·  view source on GitHub ↗
(array $option)

Source from the content-addressed store, hash-verified

368 }
369
370 private function buildHtmlRequestHeaders(array $option): array {
371 $headers = [
372 'Accept' => 'text/html',
373 'User-Agent' => 'Analytics for Nextcloud',
374 ];
375
376 if (isset($option['token']) && $option['token'] !== '') {
377 $headers['Authorization'] = 'token ' . $option['token'];
378 }
379
380 return $headers;
381 }
382
383 private function getJsonData($url, $option) {
384 $headers = [

Callers 1

getRawDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected