Overview

Namespaces

  • PipelinerSales
    • ApiClient
      • Http
      • Query
      • Repository
        • Rest

Classes

  • CreatedResponse
  • CurlHttpClient
  • Response

Interfaces

  • HttpInterface

Exceptions

  • PipelinerHttpException
  • Overview
  • Namespace
  • Class
  • Tree

Class Response

Represents a HTTP response.

Direct known subclasses

PipelinerSales\ApiClient\Http\CreatedResponse

Indirect known subclasses

PipelinerSales\ApiClient\Repository\Rest\RestCreatedResponse
Namespace: PipelinerSales\ApiClient\Http
Located at PipelinerSales/ApiClient/Http/Response.php
Methods summary
public
# __construct( $body, $headers, $statusCode, $requestUrl, $requestMethod )
public string
# getBody( )

Returns

string
public string
# getHeaders( )

Returns the raw headers of the response in a single string

Returns the raw headers of the response in a single string

Returns

string
public
# getStatusCode( )
public
# getRequestMethod( )
public
# getRequestUrl( )
public stdClass|array
# decodeJson( boolean $assoc = false )

Decodes the response's body into an object.

Decodes the response's body into an object.

Parameters

$assoc
when true, returned objects will be converted into associative arrays.

Returns

stdClass|array

Throws

PipelinerSales\ApiClient\Http\PipelinerHttpException
on error while decoding the json string
API documentation generated by ApiGen