WonderPush PHP library
  • Namespace
  • Class
Navigation
  • Namespace
  • Class
Namespaces
  • WonderPush
    • Api
    • Errors
    • Net
    • Obj
    • Params
    • Util
Classes
  • CurlHttpClient
  • Request
  • Response
Interfaces
  • HttpClientInterface

Class CurlHttpClient

An HTTP client using PHP's cURL extension

WonderPush\Net\CurlHttpClient implements WonderPush\Net\HttpClientInterface
Namespace: WonderPush\Net
Located at Net/CurlHttpClient.php

Methods summary

public __construct( WonderPush\WonderPush $wonderPush )

Parameters

$wonderPush
WonderPush instance whose credentials are to be used.
public execute( WonderPush\Net\Request $request ) : WonderPush\Net\Response

Perform an HTTP call and return the response.

Perform an HTTP call and return the response.

Parameters

$request

Returns

WonderPush\Net\Response

Implementation of

WonderPush\Net\HttpClientInterface::execute()

Constants summary

HEADER_CURL_ERRNO : string

The fake HTTP header that will hold the output of curl_errno().

The fake HTTP header that will hold the output of curl_errno().

'curl_errno'
HEADER_CURL_ERROR : string

The fake HTTP header that will hold the output of curl_error().

The fake HTTP header that will hold the output of curl_error().

'curl_error'
WonderPush PHP library API documentation generated by ApiGen