You are here

function TwittersOAuth::getHeader in jQuery social stream 7

Same name and namespace in other branches
  1. 7.2 jquery_social_stream.js.inc \TwittersOAuth::getHeader()

Get the header info to store.

File

./jquery_social_stream.js.inc, line 315
JS callbacks.

Class

TwittersOAuth
Twitter sOAuth class

Code

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);
}