/**
  * Constructs an instance of this class.
  *
  * @param HeaderCollection|null $headers
  */
 public function __construct(HeaderCollection $headers = null)
 {
     parent::__construct(304, $headers);
 }
Ejemplo n.º 2
0
 /**
  * Constructs an instance of this class.
  *
  * @param UriInterface          $uri
  * @param HeaderCollection|null $headers
  */
 public function __construct(UriInterface $uri, HeaderCollection $headers = null)
 {
     $headers = clone $this->buildHeaders($headers);
     $headers->set('Location', (string) $uri);
     parent::__construct(303, $headers);
 }