Overview
  • Package
  • Class

Packages

  • Klarna
    • Checkout
  • Payment
    • Klarna
      • HTTP
      • Interfaces
      • Unit
        • Tests

Classes

  • Klarna_Checkout_HTTP_CURLHandle
  • Klarna_Checkout_HTTP_CURLHeaders
  • Klarna_Checkout_HTTP_CURLTransport
  • Klarna_Checkout_HTTP_Request
  • Klarna_Checkout_HTTP_Response

Interfaces

  • Klarna_Checkout_HTTP_CURLHandleInterface

Class Klarna_Checkout_HTTP_CURLHeaders

A simple class handling the header callback for cURL.

Package: Payment\Klarna\HTTP
Category: Payment
Copyright: 2015 Klarna AB
License: Apache license v2.0
Author: Klarna support@klarna.com
Link: http://developers.klarna.com/
Located at Klarna/Checkout/HTTP/CURLHeaders.php

Methods summary

public
# __construct( )

Initializes a new instance of the HTTP cURL class.

Initializes a new instance of the HTTP cURL class.

public integer
# processHeader( resource $curl, string $header )

Callback method to handle custom headers.

Callback method to handle custom headers.

Parameters

$curl
the cURL resource.
$header
the header data.

Returns

integer
the number of bytes handled.
public array
# getHeaders( )

Gets the accumulated headers.

Gets the accumulated headers.

Returns

array

Magic methods summary

Properties summary

protected array $headers

Response headers, cleared for each request.

Response headers, cleared for each request.

#
API documentation generated by ApiGen