function TwitterOAuth::getHeader in jQuery social stream 8.2
Same name and namespace in other branches
- 8 src/Twitter/TwitterOAuth.php \Drupal\jquery_social_stream\Twitter\TwitterOAuth::getHeader()
Get the header info to store.
File
- src/
Twitter/ TwitterOAuth.php, line 243
Class
- TwitterOAuth
- Twitter OAuth class
Namespace
Drupal\jquery_social_stream\TwitterCode
function getHeader($ch, $header) {
$i = strpos($header, ':');
if (!empty($i)) {
$key = str_replace('-', '_', strtolower(substr($header, 0, $i)));
$value = trim(substr($header, $i + 2));
$this->http_header[$key] = $value;
}
return strlen($header);
}