Hoa central
Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | Static Private Attributes | List of all members
Hoa\Http\Response\Response Class Reference
Inheritance diagram for Hoa\Http\Response\Response:

Public Member Functions

 __construct ($newBuffer=true, $callable=null, $size=null)
 
 parse ($packet)
 
 sendStatus ($status, $replace=true)
 
 sendHeader ($header, $value, $replace=true, $status=null)
 
 sendHeaders ()
 
 getSentHeaders ()
 
 newBuffer ($callable=null, $size=null)
 
 flush ($force=false)
 
 deleteBuffer ()
 
 getBufferLevel ()
 
 getBufferSize ()
 
 write ($string, $length)
 
 writeString ($string)
 
 writeCharacter ($character)
 
 writeBoolean ($boolean)
 
 writeInteger ($integer)
 
 writeFloat ($float)
 
 writeArray (Array $array)
 
 writeLine ($line)
 
 writeAll ($string)
 
 truncate ($size)
 
 getHash ()
 
 __destruct ()
 
- Public Member Functions inherited from Hoa\Http\Http
 __construct ()
 
 setHttpVersion ($version)
 
 getHttpVersion ()
 
 parse ($packet)
 
 getHeaders ()
 
 getHeadersFormatted ()
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 
 getIterator ()
 
 count ()
 
 setBody ($body)
 
 getBody ()
 
 __toString ()
 
- Public Member Functions inherited from Hoa\Stream\IStream\Bufferable
 flush ()
 

Static Public Member Functions

static getStatus ($status)
 

Public Attributes

const STATUS_CONTINUE = '100 Continue'
 
const STATUS_SWITCHING_PROTOCOLS = '101 Switching Protocols'
 
const STATUS_PROCESSING = '102 Processing'
 
const STATUS_OK = '200 Ok'
 
const STATUS_CREATED = '201 Created'
 
const STATUS_ACCEPTED = '202 Accepted'
 
const STATUS_NON_AUTHORITATIVE_INFORMATION = '203 Non Authoritative Information'
 
const STATUS_NO_CONTENT = '204 No Content'
 
const STATUS_RESET_CONTENT = '205 Reset Content'
 
const STATUS_PARTIAL_CONTENT = '206 Partial Content'
 
const STATUS_MULTI_STATUS = '207 Multi-Status'
 
const STATUS_ALREADY_REPORTED = '208 Already Reported'
 
const STATUS_IM_USED = '226 IM Used'
 
const STATUS_MULTIPLE_CHOICES = '300 Multiple Choices'
 
const STATUS_MOVED_PERMANENTLY = '301 Moved Permanently'
 
const STATUS_FOUND = '302 Found'
 
const STATUS_SEE_OTHER = '303 See Other'
 
const STATUS_NOT_MODIFIED = '304 Not Modified'
 
const STATUS_USE_PROXY = '305 Use Proxy'
 
const STATUS_TEMPORARY_REDIRECT = '307 Temporary Redirect'
 
const STATUS_PERMANENT_REDIRECT = '308 Permanent Redirect'
 
const STATUS_BAD_REQUEST = '400 Bad Request'
 
const STATUS_UNAUTHORIZED = '401 Unauthorized'
 
const STATUS_PAYMENT_REQUIRED = '402 Payment Required'
 
const STATUS_FORBIDDEN = '403 Forbidden'
 
const STATUS_NOT_FOUND = '404 Not Found'
 
const STATUS_METHOD_NOT_ALLOWED = '405 Method Not Allowed'
 
const STATUS_NOT_ACCEPTABLE = '406 Not Acceptable'
 
const STATUS_PROXY_AUTHENTIFICATION_REQUIRED = '407 Proxy Authentification Required'
 
const STATUS_REQUEST_TIME_OUT = '408 Request Timeout'
 
const STATUS_CONFLICT = '409 Conflict'
 
const STATUS_GONE = '410 Gone'
 
const STATUS_LENGTH_REQUIRED = '411 Length Required'
 
const STATUS_PRECONDITION_FAILED = '412 Precondition Failed'
 
const STATUS_REQUEST_ENTITY_TOO_LARGE = '413 Request Entity Too Large'
 
const STATUS_REQUEST_URI_TOO_LARGE = '414 Request URI Too Large'
 
const STATUS_UNSUPPORTED_MEDIA_TYPE = '415 Unsupported Media Type'
 
const STATUS_REQUESTED_RANGE_NOT_SATISFIABLE = '416 Requested Range Not Satisfiable'
 
const STATUS_EXPECTATION_FAILED = '417 Expectation Failed'
 
const STATUS_IM_A_TEAPOT = '418 I\'m a teapot'
 
const STATUS_UNPROCESSABLE_ENTITY = '422 Unprocessable Entity'
 
const STATUS_LOCKED = '423 Locked'
 
const STATUS_FAILED_DEPENDENCY = '424 Failed Dependency'
 
const STATUS_UPGRADE_REQUIRED = '426 Upgrade Required'
 
const STATUS_PRECONDITION_REQUIRED = '428 Precondition Required'
 
const STATUS_TOO_MANY_REQUESTS = '429 Too Many Requests'
 
const STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE = '431 Request Header Fields Too Large'
 
const STATUS_INTERNAL_SERVER_ERROR = '500 Internal Server Error'
 
const STATUS_NOT_IMPLEMENTED = '501 Not Implemented'
 
const STATUS_BAD_GATEWAY = '502 Bad Gateway'
 
const STATUS_SERVICE_UNAVAILABLE = '503 Service Unavailable'
 
const STATUS_GATEWAY_TIME_OUT = '504 Gateway Time Out'
 
const STATUS_HTTP_VERSION_NOT_SUPPORTED = '505 HTTP Version Not Supported'
 
const STATUS_VARIANT_ALSO_NEGOTIATES = '506 Variant Also Negotiates'
 
const STATUS_INSUFFICIENT_STORAGE = '507 Insufficient Storage'
 
const STATUS_LOOP_DETECTED = '508 Loop Detected'
 
const STATUS_NOT_EXTENDED = '510 Not Extended'
 
const STATUS_NETWORK_AUTHENTIFICATION_REQUIRED = '511 Network Authentification Required'
 

Private Attributes

 $_status = []
 
 $_hash = null
 

Static Private Attributes

static $_stack = []
 

Additional Inherited Members

- Protected Member Functions inherited from Hoa\Http\Http
 _parse (Array $headers)
 
- Protected Attributes inherited from Hoa\Http\Http
 $_httpVersion = 1.1
 
 $_headers = []
 
 $_body = null
 
- Static Protected Attributes inherited from Hoa\Http\Http
static $_fcgi = null
 

Detailed Description

Class .

HTTP response support.

Follow http://tools.ietf.org/html/draft-nottingham-http-new-status-03.

Definition at line 53 of file Response.php.

Constructor & Destructor Documentation

Hoa\Http\Response\Response::__construct (   $newBuffer = true,
  $callable = null,
  $size = null 
)

Constructor.

Parameters
bool$newBufferWhether we run $this->newBuffer(). Following arguments are for this method.
mixed$callableCallable.
int$sizeSize.
Returns
void

Definition at line 498 of file Response.php.

499  {
500  parent::__construct();
501  $this->_hash = spl_object_hash($this);
502 
503  if (true === $newBuffer) {
504  $this->newBuffer($callable, $size);
505  }
506 
507  if (empty($this->_status)) {
508  $reflection = new \ReflectionClass($this);
509 
510  foreach ($reflection->getConstants() as $value) {
511  $this->_status[$this->getStatus($value)] = $value;
512  }
513  }
514 
515  return;
516  }
newBuffer($callable=null, $size=null)
Definition: Response.php:657
static getStatus($status)
Definition: Response.php:571

Here is the call graph for this function:

Hoa\Http\Response\Response::__destruct ( )

Delete head buffer.

Returns
void

Definition at line 932 of file Response.php.

933  {
934  $last = current(self::$_stack);
935 
936  if ($this->getHash() != $last[0]) {
937  return;
938  }
939 
940  for ($i = 0, $max = $last[1]; $i < $max; ++$i) {
941  $this->flush();
942 
943  if (0 < $this->getBufferLevel()) {
944  $this->deleteBuffer();
945  }
946  }
947 
948  return;
949  }

Here is the call graph for this function:

Member Function Documentation

Hoa\Http\Response\Response::deleteBuffer ( )

Delete buffer.

Returns
bool
Exceptions

Implements Hoa\Stream\IStream\Bufferable.

Definition at line 709 of file Response.php.

710  {
711  $key = key(self::$_stack);
712 
713  if ($this->getHash() != self::$_stack[$key][0]) {
714  throw new \Hoa\Http\Exception\CrossBufferization(
715  'Cannot delete this buffer because it was not opened by this ' .
716  'class (%s, %s).',
717  2,
718  [get_class($this), $this->getHash()]
719  );
720  }
721 
722  $out = ob_end_clean();
723 
724  if (false === $out) {
725  return false;
726  }
727 
728  --self::$_stack[$key][1];
729 
730  if (0 >= self::$_stack[$key][1]) {
731  unset(self::$_stack[$key]);
732  }
733 
734  return true;
735  }

Here is the call graph for this function:

Here is the caller graph for this function:

Hoa\Http\Response\Response::flush (   $force = false)

Flush the buffer.

Parameters
bool$forceForce to flush the output buffer.
Returns
void

Definition at line 688 of file Response.php.

689  {
690  if (0 >= $this->getBufferSize()) {
691  return;
692  }
693 
694  ob_flush();
695 
696  if (true === $force) {
697  flush();
698  }
699 
700  return;
701  }

Here is the call graph for this function:

Hoa\Http\Response\Response::getBufferLevel ( )

Get buffer level.

Returns
int

Implements Hoa\Stream\IStream\Bufferable.

Definition at line 742 of file Response.php.

743  {
744  return ob_get_level();
745  }

Here is the caller graph for this function:

Hoa\Http\Response\Response::getBufferSize ( )

Get buffer size.

Returns
int

Implements Hoa\Stream\IStream\Bufferable.

Definition at line 752 of file Response.php.

753  {
754  return ob_get_length();
755  }

Here is the caller graph for this function:

Hoa\Http\Response\Response::getHash ( )

Get this object hash.

Returns
string

Definition at line 922 of file Response.php.

923  {
924  return $this->_hash;
925  }

Here is the caller graph for this function:

Hoa\Http\Response\Response::getSentHeaders ( )

Get send headers.

Returns
void

Definition at line 644 of file Response.php.

645  {
646  return implode("\r\n", headers_list());
647  }
static Hoa\Http\Response\Response::getStatus (   $status)
static

Get real status from static::STATUS_* constants.

Returns
int

Definition at line 571 of file Response.php.

572  {
573  return (int) substr($status, 0, 3);
574  }

Here is the caller graph for this function:

Hoa\Http\Response\Response::newBuffer (   $callable = null,
  $size = null 
)

Start a new buffer. The callable acts like a filter.

Parameters
mixed$callableCallable.
int$sizeSize.
Returns
int

Implements Hoa\Stream\IStream\Bufferable.

Definition at line 657 of file Response.php.

658  {
659  $last = current(self::$_stack);
660  $hash = $this->getHash();
661 
662  if (false === $last || $hash != $last[0]) {
663  self::$_stack[] = [
664  0 => $hash,
665  1 => 1
666  ];
667  } else {
668  ++self::$_stack[key(self::$_stack)][1];
669  }
670 
671  end(self::$_stack);
672 
673  if (null === $callable) {
674  ob_start();
675  } else {
676  ob_start(xcallable($callable), null === $size ? 0 : $size);
677  }
678 
679  return $this->getBufferLevel();
680  }

Here is the call graph for this function:

Here is the caller graph for this function:

Hoa\Http\Response\Response::parse (   $packet)

Parse a HTTP packet.

Parameters
string$packetHTTP packet.
Returns
void

Definition at line 524 of file Response.php.

525  {
526  $headers = explode("\r\n", $packet);
527  $status = array_shift($headers);
528  $this->setBody(null);
529 
530  foreach ($headers as $i => $header) {
531  if ('' == trim($header)) {
532  unset($headers[$i]);
533  $this->setBody(
534  trim(
535  implode("\r\n", array_splice($headers, $i))
536  )
537  );
538 
539  break;
540  }
541  }
542 
543  if (0 === preg_match('#^HTTP/(1\.(?:0|1))\s+(\d{3})#i', $status, $matches)) {
544  throw new \Hoa\Http\Exception(
545  'HTTP status is not well-formed: %s.',
546  0,
547  $status
548  );
549  }
550 
551  if (!isset($this->_status[$matches[2]])) {
552  throw new \Hoa\Http\Exception(
553  'Unknow HTTP status %d in %s.',
554  1,
555  [$matches[2], $status]
556  );
557  }
558 
559  $this->setHttpVersion((float) $matches[1]);
560  $this->_parse($headers);
561  $this['status'] = $this->_status[$matches[2]];
562 
563  return;
564  }
setBody($body)
Definition: Http.php:256
setHttpVersion($version)
Definition: Http.php:101
_parse(Array $headers)
Definition: Http.php:134

Here is the call graph for this function:

Hoa\Http\Response\Response::sendHeader (   $header,
  $value,
  $replace = true,
  $status = null 
)

Send a new header.

Parameters
string$headerHeader.
string$valueValue.
bool$replaceWhether replace an existing sent header.
string$statusForce a specific status. Please, see static::STATUS_* constants.
Returns
void

Definition at line 599 of file Response.php.

604  {
605  if (0 === strcasecmp('status', $header) &&
606  false === self::$_fcgi) {
607  header(
608  'HTTP/1.1 ' . $value,
609  $replace,
610  static::getStatus($value)
611  );
612 
613  return;
614  }
615 
616  header(
617  $header . ': ' . $value,
618  $replace,
619  null !== $status ? static::getStatus($status) : null
620  );
621 
622  return;
623  }

Here is the caller graph for this function:

Hoa\Http\Response\Response::sendHeaders ( )

Send all headers.

Returns
void

Definition at line 630 of file Response.php.

631  {
632  foreach ($this->_headers as $header => $value) {
633  $this->sendHeader($header, $value);
634  }
635 
636  return;
637  }
sendHeader($header, $value, $replace=true, $status=null)
Definition: Response.php:599

Here is the call graph for this function:

Hoa\Http\Response\Response::sendStatus (   $status,
  $replace = true 
)

Send a new status.

Parameters
string$statusStatus. Please, see static::STATUS_* constants.
bool$replaceWhether replace an existing sent header.
Returns
void

Definition at line 584 of file Response.php.

585  {
586  return $this->sendHeader('status', $status, $replace, $status);
587  }
sendHeader($header, $value, $replace=true, $status=null)
Definition: Response.php:599

Here is the call graph for this function:

Hoa\Http\Response\Response::truncate (   $size)

Truncate a file to a given length.

Parameters
int$sizeSize.
Returns
bool

Implements Hoa\Stream\IStream\Out.

Definition at line 898 of file Response.php.

899  {
900  if (0 === $size) {
901  ob_clean();
902 
903  return true;
904  }
905 
906  $bSize = $this->getBufferSize();
907 
908  if ($size >= $bSize) {
909  return true;
910  }
911 
912  echo substr(ob_get_clean(), 0, $size);
913 
914  return true;
915  }

Here is the call graph for this function:

Hoa\Http\Response\Response::write (   $string,
  $length 
)

Write n characters.

Parameters
string$stringString.
int$lengthLength.
Returns
mixed
Exceptions

Implements Hoa\Stream\IStream\Out.

Definition at line 765 of file Response.php.

766  {
767  if (0 > $length) {
768  throw new \Hoa\Http\Exception(
769  'Length must be greater than 0, given %d.',
770  3,
771  $length
772  );
773  }
774 
775  if (strlen($string) > $length) {
776  $string = substr($string, 0, $length);
777  }
778 
779  echo $string;
780 
781  return;
782  }
Hoa\Http\Response\Response::writeAll (   $string)

Write all, i.e. as much as possible.

Parameters
string$stringString.
Returns
mixed

Implements Hoa\Stream\IStream\Out.

Definition at line 885 of file Response.php.

886  {
887  echo $string;
888 
889  return;
890  }
Hoa\Http\Response\Response::writeArray ( Array  $array)

Write an array.

Parameters
array$arrayArray.
Returns
mixed

Implements Hoa\Stream\IStream\Out.

Definition at line 855 of file Response.php.

856  {
857  echo var_export($array, true);
858 
859  return;
860  }
Hoa\Http\Response\Response::writeBoolean (   $boolean)

Write a boolean.

Parameters
bool$booleanBoolean.
Returns
mixed

Implements Hoa\Stream\IStream\Out.

Definition at line 816 of file Response.php.

817  {
818  echo (string) (bool) $boolean;
819 
820  return;
821  }
Hoa\Http\Response\Response::writeCharacter (   $character)

Write a character.

Parameters
string$characterCharacter.
Returns
mixed

Implements Hoa\Stream\IStream\Out.

Definition at line 803 of file Response.php.

804  {
805  echo $character[0];
806 
807  return;
808  }
Hoa\Http\Response\Response::writeFloat (   $float)

Write a float.

Parameters
float$floatFloat.
Returns
mixed

Implements Hoa\Stream\IStream\Out.

Definition at line 842 of file Response.php.

843  {
844  echo (string) (float) $float;
845 
846  return;
847  }
Hoa\Http\Response\Response::writeInteger (   $integer)

Write an integer.

Parameters
int$integerInteger.
Returns
mixed

Implements Hoa\Stream\IStream\Out.

Definition at line 829 of file Response.php.

830  {
831  echo (string) (int) $integer;
832 
833  return;
834  }
Hoa\Http\Response\Response::writeLine (   $line)

Write a line.

Parameters
string$lineLine.
Returns
mixed

Implements Hoa\Stream\IStream\Out.

Definition at line 868 of file Response.php.

869  {
870  if (false !== $n = strpos($line, "\n")) {
871  $line = substr($line, 0, $n + 1);
872  }
873 
874  echo $line;
875 
876  return;
877  }
Hoa\Http\Response\Response::writeString (   $string)

Write a string.

Parameters
string$stringString.
Returns
mixed

Implements Hoa\Stream\IStream\Out.

Definition at line 790 of file Response.php.

791  {
792  echo (string) $string;
793 
794  return;
795  }
if(true===function_exists('mb_internal_encoding')) if(true===function_exists('mb_regex_encoding')) return
Definition: Core.php:181

Member Data Documentation

Hoa\Http\Response\Response::$_hash = null
private

Definition at line 476 of file Response.php.

Hoa\Http\Response\Response::$_stack = []
staticprivate

Definition at line 484 of file Response.php.

Hoa\Http\Response\Response::$_status = []
private

Definition at line 469 of file Response.php.

const Hoa\Http\Response\Response::STATUS_ACCEPTED = '202 Accepted'

Accepted (please, see RFC7231).

string

Definition at line 98 of file Response.php.

const Hoa\Http\Response\Response::STATUS_ALREADY_REPORTED = '208 Already Reported'

Already Reported (please, see RFC5842).

string

Definition at line 140 of file Response.php.

const Hoa\Http\Response\Response::STATUS_BAD_GATEWAY = '502 Bad Gateway'

Bad gateway (please, see RFC7231).

string

Definition at line 406 of file Response.php.

const Hoa\Http\Response\Response::STATUS_BAD_REQUEST = '400 Bad Request'

Bad request (please, see RFC7231).

string

Definition at line 210 of file Response.php.

const Hoa\Http\Response\Response::STATUS_CONFLICT = '409 Conflict'

Conflict (please, see RFC7231).

string

Definition at line 273 of file Response.php.

const Hoa\Http\Response\Response::STATUS_CONTINUE = '100 Continue'

Continue (please, see RFC7231).

string

Definition at line 63 of file Response.php.

const Hoa\Http\Response\Response::STATUS_CREATED = '201 Created'

Created (please, see RFC7231).

string

Definition at line 91 of file Response.php.

const Hoa\Http\Response\Response::STATUS_EXPECTATION_FAILED = '417 Expectation Failed'

Expectation failed (please, see RFC7231).

string

Definition at line 329 of file Response.php.

const Hoa\Http\Response\Response::STATUS_FAILED_DEPENDENCY = '424 Failed Dependency'

Failed Dependency (please, see RFC4918).

string

Definition at line 357 of file Response.php.

const Hoa\Http\Response\Response::STATUS_FORBIDDEN = '403 Forbidden'

Forbidden (please, see RFC7231).

string

Definition at line 231 of file Response.php.

const Hoa\Http\Response\Response::STATUS_FOUND = '302 Found'

Found (please, see RFC7231).

string

Definition at line 168 of file Response.php.

const Hoa\Http\Response\Response::STATUS_GATEWAY_TIME_OUT = '504 Gateway Time Out'

Gateway time-out (please, see RFC7231).

string

Definition at line 420 of file Response.php.

const Hoa\Http\Response\Response::STATUS_GONE = '410 Gone'

Gone (please, see RFC7231).

string

Definition at line 280 of file Response.php.

const Hoa\Http\Response\Response::STATUS_HTTP_VERSION_NOT_SUPPORTED = '505 HTTP Version Not Supported'

HTTP version not supported (please, see RFC7231).

string

Definition at line 427 of file Response.php.

const Hoa\Http\Response\Response::STATUS_IM_A_TEAPOT = '418 I\'m a teapot'

I'm a teapot (see RFC2324, April Fool's joke).

string

Definition at line 336 of file Response.php.

const Hoa\Http\Response\Response::STATUS_IM_USED = '226 IM Used'

IM used (please, see RFC3229).

string

Definition at line 147 of file Response.php.

const Hoa\Http\Response\Response::STATUS_INSUFFICIENT_STORAGE = '507 Insufficient Storage'

Insufficient Storage (please, see RFC4918).

string

Definition at line 441 of file Response.php.

const Hoa\Http\Response\Response::STATUS_INTERNAL_SERVER_ERROR = '500 Internal Server Error'

Internal server error (please, see RFC7231).

string

Definition at line 392 of file Response.php.

const Hoa\Http\Response\Response::STATUS_LENGTH_REQUIRED = '411 Length Required'

Length required (please, see RFC7231).

string

Definition at line 287 of file Response.php.

const Hoa\Http\Response\Response::STATUS_LOCKED = '423 Locked'

Locked (please, see RFC4918).

string

Definition at line 350 of file Response.php.

const Hoa\Http\Response\Response::STATUS_LOOP_DETECTED = '508 Loop Detected'

Loop Detected (please, see RFC5842).

string

Definition at line 448 of file Response.php.

const Hoa\Http\Response\Response::STATUS_METHOD_NOT_ALLOWED = '405 Method Not Allowed'

Method not allowed (please, see RFC7231).

string

Definition at line 245 of file Response.php.

const Hoa\Http\Response\Response::STATUS_MOVED_PERMANENTLY = '301 Moved Permanently'

Moved permanently (please, see RFC7231).

string

Definition at line 161 of file Response.php.

const Hoa\Http\Response\Response::STATUS_MULTI_STATUS = '207 Multi-Status'

Multi-status (please, see RFC4918).

string

Definition at line 133 of file Response.php.

const Hoa\Http\Response\Response::STATUS_MULTIPLE_CHOICES = '300 Multiple Choices'

Multiple choices (please, see RFC7231).

string

Definition at line 154 of file Response.php.

const Hoa\Http\Response\Response::STATUS_NETWORK_AUTHENTIFICATION_REQUIRED = '511 Network Authentification Required'

Network Authentification Required (please, see RFC6585).

string

Definition at line 462 of file Response.php.

const Hoa\Http\Response\Response::STATUS_NO_CONTENT = '204 No Content'

No content (please, see RFC7231).

string

Definition at line 112 of file Response.php.

const Hoa\Http\Response\Response::STATUS_NON_AUTHORITATIVE_INFORMATION = '203 Non Authoritative Information'

Non-authoritative information (please, see RFC7231).

string

Definition at line 105 of file Response.php.

const Hoa\Http\Response\Response::STATUS_NOT_ACCEPTABLE = '406 Not Acceptable'

Not acceptable (please, see RFC7231).

string

Definition at line 252 of file Response.php.

const Hoa\Http\Response\Response::STATUS_NOT_EXTENDED = '510 Not Extended'

Not Extended (please, see RFC2774).

string

Definition at line 455 of file Response.php.

const Hoa\Http\Response\Response::STATUS_NOT_FOUND = '404 Not Found'

Not found (please, see RFC7231).

string

Definition at line 238 of file Response.php.

const Hoa\Http\Response\Response::STATUS_NOT_IMPLEMENTED = '501 Not Implemented'

Not implemented (please, see RFC7231).

string

Definition at line 399 of file Response.php.

const Hoa\Http\Response\Response::STATUS_NOT_MODIFIED = '304 Not Modified'

Not modified (please, see RFC7232).

string

Definition at line 182 of file Response.php.

const Hoa\Http\Response\Response::STATUS_OK = '200 Ok'

OK (please, see RFC7231).

string

Definition at line 84 of file Response.php.

const Hoa\Http\Response\Response::STATUS_PARTIAL_CONTENT = '206 Partial Content'

Partial content (please, see RFC7233).

string

Definition at line 126 of file Response.php.

const Hoa\Http\Response\Response::STATUS_PAYMENT_REQUIRED = '402 Payment Required'

Payment required (please, see RFC7231).

string

Definition at line 224 of file Response.php.

const Hoa\Http\Response\Response::STATUS_PERMANENT_REDIRECT = '308 Permanent Redirect'

Permanent redirect (please, see RFC7238).

string

Definition at line 203 of file Response.php.

const Hoa\Http\Response\Response::STATUS_PRECONDITION_FAILED = '412 Precondition Failed'

Precondition failed (please, see RFC7232).

string

Definition at line 294 of file Response.php.

const Hoa\Http\Response\Response::STATUS_PRECONDITION_REQUIRED = '428 Precondition Required'

Precondition Required (please, see RFC6585).

string

Definition at line 371 of file Response.php.

const Hoa\Http\Response\Response::STATUS_PROCESSING = '102 Processing'

Processing (please, see RFC2518).

string

Definition at line 77 of file Response.php.

const Hoa\Http\Response\Response::STATUS_PROXY_AUTHENTIFICATION_REQUIRED = '407 Proxy Authentification Required'

Proxy authentification required (please, see RFC7235).

string

Definition at line 259 of file Response.php.

const Hoa\Http\Response\Response::STATUS_REQUEST_ENTITY_TOO_LARGE = '413 Request Entity Too Large'

Request entity too large (please, see RFC7231).

string

Definition at line 301 of file Response.php.

const Hoa\Http\Response\Response::STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE = '431 Request Header Fields Too Large'

Request Header Fields Too Large (please, see RFC6585).

string

Definition at line 385 of file Response.php.

const Hoa\Http\Response\Response::STATUS_REQUEST_TIME_OUT = '408 Request Timeout'

Request time-out (please, see RFC7231).

string

Definition at line 266 of file Response.php.

const Hoa\Http\Response\Response::STATUS_REQUEST_URI_TOO_LARGE = '414 Request URI Too Large'

Request URI too large (please, see RFC7231).

string

Definition at line 308 of file Response.php.

const Hoa\Http\Response\Response::STATUS_REQUESTED_RANGE_NOT_SATISFIABLE = '416 Requested Range Not Satisfiable'

Requested range not satisfiable (please, see RFC7233).

string

Definition at line 322 of file Response.php.

const Hoa\Http\Response\Response::STATUS_RESET_CONTENT = '205 Reset Content'

Reset content (please, see RFC7231).

string

Definition at line 119 of file Response.php.

const Hoa\Http\Response\Response::STATUS_SEE_OTHER = '303 See Other'

See other (please, see RFC7231).

string

Definition at line 175 of file Response.php.

const Hoa\Http\Response\Response::STATUS_SERVICE_UNAVAILABLE = '503 Service Unavailable'

Service unavailable (please, see RFC7231).

string

Definition at line 413 of file Response.php.

const Hoa\Http\Response\Response::STATUS_SWITCHING_PROTOCOLS = '101 Switching Protocols'

Switching protocols (please, see RFC7231).

string

Definition at line 70 of file Response.php.

const Hoa\Http\Response\Response::STATUS_TEMPORARY_REDIRECT = '307 Temporary Redirect'

Temporary redirect (please, see RFC7231).

string

Definition at line 196 of file Response.php.

const Hoa\Http\Response\Response::STATUS_TOO_MANY_REQUESTS = '429 Too Many Requests'

Too Many Requests (please, see RFC6585).

string

Definition at line 378 of file Response.php.

const Hoa\Http\Response\Response::STATUS_UNAUTHORIZED = '401 Unauthorized'

Unauthorized (please, see RFC7235).

string

Definition at line 217 of file Response.php.

const Hoa\Http\Response\Response::STATUS_UNPROCESSABLE_ENTITY = '422 Unprocessable Entity'

Unprocessable Entity (please, see RFC4918).

string

Definition at line 343 of file Response.php.

const Hoa\Http\Response\Response::STATUS_UNSUPPORTED_MEDIA_TYPE = '415 Unsupported Media Type'

Unsupported media type (please, see RFC7231).

string

Definition at line 315 of file Response.php.

const Hoa\Http\Response\Response::STATUS_UPGRADE_REQUIRED = '426 Upgrade Required'

Upgrade required (please, see RFC7231).

string

Definition at line 364 of file Response.php.

const Hoa\Http\Response\Response::STATUS_USE_PROXY = '305 Use Proxy'

Use proxy (please, see RFC7231).

string

Definition at line 189 of file Response.php.

const Hoa\Http\Response\Response::STATUS_VARIANT_ALSO_NEGOTIATES = '506 Variant Also Negotiates'

Variant Also Negotiates (please, see RFC2295).

string

Definition at line 434 of file Response.php.


The documentation for this class was generated from the following file: