Overview

Namespaces

  • None
  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Exceptions
      • Log
      • Request
        • Response
    • Compute
    • Database
    • DNS
    • LoadBalancer
      • Resources
    • ObjectStore
      • Resource
    • Orchestration
    • Volume
  • PHP

Classes

  • Blank
  • Http
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

Class Http

The HttpResponse returns an object with status information, separated headers, and any response body necessary.

OpenCloud\Common\Base
Extended by OpenCloud\Common\Request\Response\Http

Direct known subclasses

OpenCloud\Common\Request\Response\Blank
Namespace: OpenCloud\Common\Request\Response
Author: Glen Campbell <glen.campbell@rackspace.com>
Api
Located at OpenCloud/Common/Request/Response/Http.php
Methods summary
public
# __construct( mixed $request, mixed $data )

The constructor parses everything necessary

The constructor parses everything necessary

public string
# httpBody( )

Returns the full body of the request

Returns the full body of the request

Returns

string
public
# setBody( string $body )

Sets the body.

Sets the body.

Parameters

$body
string
$body
public associative
# headers( )

Returns an array of headers

Returns an array of headers

Returns

associative
array('header'=>value)
public string
# header( mixed $name )

Returns a single header

Returns a single header

Returns

string
with the value of the requested header, or NULL
public array
# info( )

Returns an array of information

Returns an array of information

Returns

array
public integer
# errno( )

Returns the most recent error number

Returns the most recent error number

Returns

integer
public string
# error( )

Returns the most recent error message

Returns the most recent error message

Returns

string
public integer
# httpStatus( )

Returns the HTTP status code

Returns the HTTP status code

Returns

integer
Methods inherited from OpenCloud\Common\Base
__set(), checkJsonError(), getHttpRequestObject(), getLogger(), makeQueryString(), populate(), setLogger(), setProperty(), url()
Properties summary
protected mixed $body
#
protected array $headers array()
#
PHP OpenCloud API API documentation generated by ApiGen 2.8.0