Overview

Namespaces

  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
    • Tests
      • Batch
      • Cache
      • Common
        • Cache
        • Exception
      • Http
        • Curl
        • Exception
        • Message
          • Header
      • Inflection
      • Iterator
      • Log
      • Message
      • Mock
      • Parser
        • Cookie
        • Message
      • Parsers
        • UriTemplate
      • Plugin
        • Async
        • Backoff
        • Cache
        • Cookie
          • CookieJar
        • CurlAuth
        • ErrorResponse
        • History
        • Log
        • Md5
        • Mock
        • Oauth
        • Redirect
      • Service
        • Builder
        • Command
          • LocationVisitor
            • Request
            • Response
        • Description
        • Exception
        • Mock
          • Command
            • Sub
          • Model
        • Resource
      • Stream
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • Fatzebra
      • Message
  • PHP

Classes

  • AbstractRequestVisitor
  • BodyVisitor
  • HeaderVisitor
  • JsonVisitor
  • PostFieldVisitor
  • PostFileVisitor
  • QueryVisitor
  • ResponseBodyVisitor
  • XmlVisitor

Interfaces

  • RequestVisitorInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class BodyVisitor

Visitor used to apply a body to a request

This visitor can use a data parameter of 'expect' to control the Expect header. Set the expect data parameter to false to disable the expect header, or set the value to an integer so that the expect 100-continue header is only added if the Content-Length of the entity body is greater than the value.

Guzzle\Service\Command\LocationVisitor\Request\AbstractRequestVisitor implements Guzzle\Service\Command\LocationVisitor\Request\RequestVisitorInterface
Extended by Guzzle\Service\Command\LocationVisitor\Request\BodyVisitor
Namespace: Guzzle\Service\Command\LocationVisitor\Request
Located at src/Guzzle/Service/Command/LocationVisitor/Request/BodyVisitor.php
Methods summary
public
# visit( Guzzle\Service\Command\CommandInterface $command, Guzzle\Http\Message\RequestInterface $request, Guzzle\Service\Description\Parameter $param, mixed $value )

Parameters

$command
Command being visited
$request
Request being visited
$param
Parameter being visited
$value
Value to set

Codecoverageignore

Overrides

Guzzle\Service\Command\LocationVisitor\Request\AbstractRequestVisitor::visit()
protected
# addExpectHeader( Guzzle\Http\Message\EntityEnclosingRequestInterface $request, Guzzle\Http\EntityBodyInterface $body, string|integer $expect )

Add the appropriate expect header to a request

Add the appropriate expect header to a request

Parameters

$request
Request to update
$body
Entity body of the request
$expect
Expect header setting
Methods inherited from Guzzle\Service\Command\LocationVisitor\Request\AbstractRequestVisitor
after(), prepareValue(), resolveRecursively()
Omnipay Fat Zebra / Paystream Gateway Module API Documentation API documentation generated by ApiGen