src/Http/Request.php
/**
	 * Gets the value of the specified header as a string.
	 *
	 * @param string|null $key
	 * @return string|string[]
	 */
Gets the value of the specified header as a string.
Gets the value of the specified header as a string .
public function header($key = null) {
		if (is_null($key)) {
			return $this->headers->all();
		}
		return $this->headers->get($key);
	}
public function header ( $ key = null ) { if ( is_null ( $ key ) ) { return $ this -> headers -> all ( ) ; } return $ this -> headers -> get ( $ key ) ; }
Gets the value of the specified header as a string.
Gets the value of the specified header as a string .