Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • 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
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

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

Interfaces

  • RequestVisitorInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

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 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 )

Called once for each parameter being visited that matches the location type

Called once for each parameter being visited that matches the location type

Parameters

$command
Guzzle\Service\Command\CommandInterface
$command Command being visited
$request
Guzzle\Http\Message\RequestInterface
$request Request being visited
$param
Guzzle\Service\Description\Parameter
$param Parameter being visited
$value
mixed
$value Value to set

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
Guzzle\Http\Message\EntityEnclosingRequestInterface
$request Request to update
$body
Guzzle\Http\EntityBodyInterface
$body Entity body of the request
$expect
string|integer
$expect Expect header setting
Methods inherited from Guzzle\Service\Command\LocationVisitor\Request\AbstractRequestVisitor
after(), prepareValue(), resolveRecursively()
php-coveralls API documentation generated by ApiGen 2.8.0