Overview

Namespaces

  • Net
    • Bazzline
      • Component
        • Curl
          • Builder
          • Dispatcher
          • HeaderLine
          • Option
            • Authentication
            • Authorization
            • Behaviour
            • Callback
            • Cookie
            • Ftp
            • Security
            • Transfer
          • Request
          • Response
          • ResponseBehaviour

Classes

  • Builder
  • BuilderFactory
  • Overview
  • Namespace
  • Class

Class Builder

Namespace: Net\Bazzline\Component\Curl\Builder
Located at Builder/Builder.php
Methods summary
public
# __construct( Net\Bazzline\Component\Curl\Request\Request $request, Net\Bazzline\Component\Toolbox\HashMap\Merge $merge, array $defaultResponseBehaviours = [] )

Parameters

$request
$merge
$defaultResponseBehaviours
public Net\Bazzline\Component\Curl\Response\Response
# andFetchTheResponse( )

Returns

Net\Bazzline\Component\Curl\Response\Response

Throws

Exception|RuntimeException
public
# asJson( )

Returns


$this
public
# reset( boolean $alsoTheDefaults = false )

Parameters

$alsoTheDefaults

Returns


$this
public
# onTheUrl( string $url )

Parameters

$url

Returns


$this
public
# withTheData( null|string|array $data )

Parameters

$data

Returns


$this
public
# withTheHeaderLine( Net\Bazzline\Component\Curl\HeaderLine\HeaderLineInterface $line )

Parameters

$line

Returns


$this
public
# withTheOption( Net\Bazzline\Component\Curl\Option\OptionInterface $option )

Parameters

$option

Returns


$this
public
# withTheParameters( array $parameters )

Parameters

$parameters

Returns


$this
public
# withTheRawHeaderLine( string $line )

Parameters

$line

Returns


$this
public
# withTheRawOption( string $key, string $value )

Parameters

$key
$value

Returns


$this
public
# withTheResponseBehaviour( Net\Bazzline\Component\Curl\ResponseBehaviour\ResponseBehaviourInterface $behaviour )

Parameters

$behaviour

Returns


$this
public
# useDelete( )

Returns


$this
public
# useGet( )

Returns


$this
public
# usePatch( )

Returns


$this
public
# usePost( )

Returns


$this
public
# usePut( )

Returns


$this
Constants summary
integer METHOD_DELETE
# 0
integer METHOD_GET
# 1
integer METHOD_PATCH
# 2
integer METHOD_POST
# 3
integer METHOD_PUT
# 4
PHP Curl Component by bazzline.net API documentation generated by ApiGen