Overview
  • Namespace
  • Class

Namespaces

  • Klarna
    • XMLRPC
      • Exception

Classes

  • Address
  • Calc
  • CheckoutServiceRequest
  • CheckoutServiceResponse
  • Config
  • Country
  • CurlHandle
  • CurlTransport
  • Currency
  • Encoding
  • Flags
  • Klarna
  • Language

Class CurlTransport

Class for handling curl requests.

Namespace: Klarna\XMLRPC
Located at Klarna/XMLRPC/CurlTransport.php

Methods summary

public
# __construct( Klarna\XMLRPC\CurlHandle $handle, integer $timeout )

Constructor.

Constructor.

Parameters

$handle
Curl handle to use
$timeout
Time-out in seconds
public integer
# getTimeout( )

Get time-out seconds.

Get time-out seconds.

Returns

integer
Time-out seconds
public object
# send( object $request )

Send a request object.

Send a request object.

Parameters

$request
The request to send

Returns

object
A response to the request sent

Throws

Exceptions\KlarnaException
For e.g. a timeout

Magic methods summary

Properties summary

protected Klarna\XMLRPC\CurlHandle $handle

Wrapper for the cURL resource.

Wrapper for the cURL resource.

#
API documentation generated by ApiGen