120 return $this->status_code >= 100 && $this->status_code <= 199;
127 return $this->status_code >= 200 && $this->status_code <= 299;
134 return $this->status_code === 200;
141 return in_array($this->status_code, [201, 301, 302, 303, 307, 308]);
148 return $this->status_code >= 400 && $this->status_code <= 499;
155 return $this->status_code >= 500 && $this->status_code <= 599;
162 return $this->status_code === 304;
setStatusCode($status_code=ELGG_HTTP_OK)
{Sets response HTTP status code.Status code self }
HTTP response builder interface.
setForwardURL($forward_url=REFERRER)
{Sets redirect URL.Forward URL self }
isNotModified()
{Check if response has been modified.bool}
__construct($content= '', $status_code=ELGG_HTTP_OK, $forward_url=null)
Constructor.
isRedirection()
{Check if response is redirection.bool}
setContent($content= '')
{Sets response body.Content of the response as a scalar value or an array self }
isInformational()
{Check if response is informational.bool}
getForwardURL()
{Returns redirect URL.string}
isServerError()
{Check if response is server error.bool}
getHeaders()
{Returns additional response headers.array}
isSuccessful()
{Check if response is successful.bool}
getStatusCode()
{Returns status code.int}
isClientError()
{Check if response is client error.bool}
isOk()
{Check if response is OK.bool}
getContent()
{Returns response body.mixed}
http free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
setHeaders(array $headers=[])
{Sets additional response headers.Headers self}