src/Beluga/Web/Http/Header.php
public static function SendExpires( $expireStamp = null )
   {

      if ( \is_null( $expireStamp ) || empty( $expireStamp ) )
      {
         $expireStamp = \time();
      }

      if ( \is_int( $expireStamp ) )
      {
         \header( 'Expires: ' . \date( 'D, d M Y H:i:s O', $expireStamp ) );
      }
      else if ( $expireStamp instanceof \DateTimeInterface )
      {
         \header( 'Expires: ' . $expireStamp->format( 'D, d M Y H:i:s O' ) );
      }
      else if ( TypeTool::IsInteger( $expireStamp ) )
      {
         \header( 'Expires: ' . \date( 'D, d M Y H:i:s O', \intval( $expireStamp ) ) );
      }
      else if ( TypeTool::IsStringConvertible( $expireStamp, $str ) )
      {
         $stamp = \strtotime( $str );
         if ( $stamp > 0 )
         {
            \header( 'Expires: ' . \date( 'D, d M Y H:i:s O', $stamp ) );
         }
      }

   }
public static function SendExpires( $expireStamp = null )
   {

      if ( \is_null( $expireStamp ) || empty( $expireStamp ) )
      {
         $expireStamp = \time();
      }

      if ( \is_int( $expireStamp ) )
      {
         \header( 'Expires: ' . \date( 'D, d M Y H:i:s O', $expireStamp ) );
      }
      else if ( $expireStamp instanceof \DateTimeInterface )
      {
         \header( 'Expires: ' . $expireStamp->format( 'D, d M Y H:i:s O' ) );
      }
      else if ( TypeTool::IsInteger( $expireStamp ) )
      {
         \header( 'Expires: ' . \date( 'D, d M Y H:i:s O', \intval( $expireStamp ) ) );
      }
      else if ( TypeTool::IsStringConvertible( $expireStamp, $str ) )
      {
         $stamp = \strtotime( $str );
         if ( $stamp > 0 )
         {
            \header( 'Expires: ' . \date( 'D, d M Y H:i:s O', $stamp ) );
         }
      }

   }
public static function SendExpires ( $ expireStamp = null ) { if ( \ is_null ( $ expireStamp ) || empty ( $ expireStamp ) ) { $ expireStamp = \ time ( ) ; } if ( \ is_int ( $ expireStamp ) ) { \ header ( 'Expires: ' . \ date ( 'D, d M Y H:i:s O' , $ expireStamp ) ) ; } else if ( $ expireStamp instanceof \ DateTimeInterface ) { \ header ( 'Expires: ' . $ expireStamp -> format ( 'D, d M Y H:i:s O' ) ) ; } else if ( TypeTool :: IsInteger ( $ expireStamp ) ) { \ header ( 'Expires: ' . \ date ( 'D, d M Y H:i:s O' , \ intval ( $ expireStamp ) ) ) ; } else if ( TypeTool :: IsStringConvertible ( $ expireStamp , $ str ) ) { $ stamp = \ strtotime ( $ str ) ; if ( $ stamp > 0 ) { \ header ( 'Expires: ' . \ date ( 'D, d M Y H:i:s O' , $ stamp ) ) ; } } }
Sends a "Expires" HTTP header.

@param int|\DateTimeInterface|string $expireStamp Optional Timestamp
Sends a Expires HTTP header .