original_string: public function header($name, $default = null, $sanitize = true)
      {
          $headers = $this->headers();
  
          $name = ucfirst(strtolower($name));
  
          if (array_key_exists($name, $headers)) {
              return $sanitize ? filter_var($headers[$name], FILTER_SANITIZE_STRING) : $headers[$name];
          }
  
          return $default;
      }
code: public function header($name, $default = null, $sanitize = true)
      {
          $headers = $this->headers();
  
          $name = ucfirst(strtolower($name));
  
          if (array_key_exists($name, $headers)) {
              return $sanitize ? filter_var($headers[$name], FILTER_SANITIZE_STRING) : $headers[$name];
          }
  
          return $default;
      }
code_tokens: public function header ( $ name , $ default = null , $ sanitize = true ) { $ headers = $ this -> headers ( ) ; $ name = ucfirst ( strtolower ( $ name ) ) ; if ( array_key_exists ( $ name , $ headers ) ) { return $ sanitize ? filter_var ( $ headers [ $ name ] , FILTER_SANITIZE_STRING ) : $ headers [ $ name ] ; } return $ default ; }
docstring: Returns an HTTP header
  @param string $name
  @param mixed $default
  @param bool $sanitize
  @return string
docstring_tokens: Returns an HTTP header