\Acms\Services\HttpEngine

Summary

Methods
Properties
Constants
__construct()
init()
setPostData()
send()
getResponseHeader()
getResponseBody()
No public properties found
No constants found
getHeadersFromCurlResponse()
setCurlOption()
$responseHeaders
$responseBody
$curl
N/A
No private methods found
No private properties found
N/A

Properties

$responseHeaders

$responseHeaders : array

Type

array

$responseBody

$responseBody : string

Type

string

$curl

$curl : resource

Type

resource

Methods

__construct()

__construct() 

Constructor

init()

init(string  $uri, string  $method = "get") : self

init request

Parameters

string $uri
string $method

Returns

self

setPostData()

setPostData(array  $data = array()) : self

set post data

Parameters

array $data

Returns

self

send()

send() : self

send request

Returns

self

getResponseHeader()

getResponseHeader(string  $name) : string

get response header

Parameters

string $name

Returns

string

getResponseBody()

getResponseBody() : string

get response body

Returns

string

getHeadersFromCurlResponse()

getHeadersFromCurlResponse(  $header_string) : array

get headers from curl response

Parameters

$header_string

Returns

array

setCurlOption()

setCurlOption() : mixed

Returns

mixed