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

  • CacheControl
  • HeaderCollection
  • HeaderFactory
  • Link

Interfaces

  • HeaderFactoryInterface
  • HeaderInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class HeaderCollection

Provides a case-insensitive collection of headers

Guzzle\Http\Message\Header\HeaderCollection implements IteratorAggregate, Countable, ArrayAccess, Guzzle\Common\ToArrayInterface
Namespace: Guzzle\Http\Message\Header
Located at src/Guzzle/Http/Message/Header/HeaderCollection.php
Methods summary
public
# __construct( $headers = array() )
public
# __clone( )
public
# clear( )

Clears the header collection

Clears the header collection

public Guzzle\Http\Message\Header\HeaderCollection
# add( Guzzle\Http\Message\Header\HeaderInterface $header )

Set a header on the collection

Set a header on the collection

Parameters

$header
Header to add

Returns

Guzzle\Http\Message\Header\HeaderCollection
public array
# getAll( )

Get an array of header objects

Get an array of header objects

Returns

array
public
# get( $key )

Alias of offsetGet

Alias of offsetGet

public
# count( )

Implementation of

Countable::count()
public
# offsetExists( $offset )

Implementation of

ArrayAccess::offsetExists()
public
# offsetGet( $offset )

Implementation of

ArrayAccess::offsetGet()
public
# offsetSet( $offset, $value )

Implementation of

ArrayAccess::offsetSet()
public
# offsetUnset( $offset )

Implementation of

ArrayAccess::offsetUnset()
public
# getIterator( )

Implementation of

IteratorAggregate::getIterator()
public array
# toArray( )

Get the array representation of an object

Get the array representation of an object

Returns

array

Implementation of

Guzzle\Common\ToArrayInterface::toArray()
Properties summary
protected array $headers
#
Omnipay Fat Zebra / Paystream Gateway Module API Documentation API documentation generated by ApiGen