OpenCloud/Common/Request/Response/Http.php

Classes

Http

Properties

 
 
 
No 
No 

Description

The HttpResponse returns an object with status information, separated headers, and any response body necessary.
It contains common code for error handling as well as service functions that are useful. Because it is an abstract class, it cannot be called directly, and it has no publicly-visible properties.

Methods

Header, Headers, HttpBody, HttpStatus, __construct, errno, error, info,

Header(   $name, ) : string

Description

Returns a single header

Arguments

Name Type Description Default
$name n/a

Return value

Type Description
string with the value of the requested header, or NULL

Headers( ) : \OpenCloud\Common\Request\Response\associative

Description

Returns an array of headers

Return value

Type Description
\OpenCloud\Common\Request\Response\associative array('header'=>value)

HttpBody( ) : string

Description

Returns the full body of the request

Return value

Type Description
string

HttpStatus( ) : integer

Description

Returns the HTTP status code

Return value

Type Description
integer

__construct(   $request,   $data, ) : n/a

Description

The constructor parses everything necessary

Arguments

Name Type Description Default
$request n/a
$data n/a

Return value

Type Description
n/a n/a

errno( ) : integer

Description

Returns the most recent error number

Return value

Type Description
integer

error( ) : string

Description

Returns the most recent error message

Return value

Type Description
string

info( ) : array

Description

Returns an array of information

Return value

Type Description
array

Properties

$body, $errno, $error, $headers, $info,

  private  $body =




  private  $errno =




  private  $error =




  private  $headers = array()




  private  $info = array()




Documentation was generated by phpDocumentor 2.0.0b6 .

Namespaces

Packages