src/Beluga/Web/Http/Header.php
public static function SendContentType( string $mimetype = 'text/html', string $charset = 'utf-8' )
   {

      if ( empty( $charset ) )
      {
         \header( 'Content-Type: ' . $mimetype );
      }
      else
      {
         \header( 'Content-Type: ' . $mimetype . '; charset=' . $charset );
      }

   }
public static function SendContentType( string $mimetype = 'text/html', string $charset = 'utf-8' )
   {

      if ( empty( $charset ) )
      {
         \header( 'Content-Type: ' . $mimetype );
      }
      else
      {
         \header( 'Content-Type: ' . $mimetype . '; charset=' . $charset );
      }

   }
public static function SendContentType ( string $ mimetype = 'text/html' , string $ charset = 'utf-8' ) { if ( empty ( $ charset ) ) { \ header ( 'Content-Type: ' . $ mimetype ) ; } else { \ header ( 'Content-Type: ' . $ mimetype . '; charset=' . $ charset ) ; } }
Sends the defined Content-Type header with a optional chaset.

@param  string $mimetype The MIME type.
@param  string $charset  The optional charset to send. (default='utf-8')
Sends the defined Content - Type header with a optional chaset .