Page MenuHomec4science

HTTPFutureResponseStatusParse.php
No OneTemporary

File Metadata

Created
Wed, Dec 11, 22:21

HTTPFutureResponseStatusParse.php

<?php
/**
* @group futures
*/
final class HTTPFutureResponseStatusParse extends HTTPFutureResponseStatus {
const ERROR_MALFORMED_RESPONSE = 1;
public function __construct($code, $raw_response) {
$this->rawResponse = $raw_response;
parent::__construct($code);
}
protected function getErrorCodeType($code) {
return 'Parse';
}
public function isError() {
return true;
}
public function isTimeout() {
return false;
}
protected function getErrorCodeDescription($code) {
return
"The remote host returned something other than an HTTP response: ".
$this->rawResponse;
}
}

Event Timeline