Overview

Namespaces

  • api
  • config
  • database
  • PHP
  • Slim
    • Exception
    • Http
    • Middleware
  • utiliy

Classes

  • Headers
  • Request
  • Response
  • Util
  • Overview
  • Namespace
  • Class
  • Tree

Class Headers

HTTP Headers

This class is an abstraction of the HTTP response headers and provides array access to the header list while automatically stores and retrieves headers with lowercase canonical keys regardless of the input format.

This class also implements the Iterator and Countable interfaces for even more convenient usage.

Slim\Http\Headers implements ArrayAccess, Iterator, Countable
Namespace: Slim\Http
Package: Slim
Author: Josh Lockhart
Since: 1.6.0
Located at thirdparty/Slim/Http/Headers.php
Methods summary
public
# __construct( array $headers = array() )

Constructor

Constructor

Parameters

$headers
array
$headers
public
# merge( array $headers )

Merge Headers

Merge Headers

Parameters

$headers
array
$headers
protected string
# canonical( string $name )

Transform header name into canonical form

Transform header name into canonical form

Parameters

$name
string
$name

Returns

string
public
# offsetExists( mixed $offset )

Array Access: Offset Exists

Array Access: Offset Exists

Implementation of

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

Array Access: Offset Get

Array Access: Offset Get

Implementation of

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

Array Access: Offset Set

Array Access: Offset Set

Implementation of

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

Array Access: Offset Unset

Array Access: Offset Unset

Implementation of

ArrayAccess::offsetUnset()
public
# count( )

Countable: Count

Countable: Count

Implementation of

Countable::count()
public
# rewind( )

Iterator: Rewind

Iterator: Rewind

Implementation of

Iterator::rewind()
public
# current( )

Iterator: Current

Iterator: Current

Implementation of

Iterator::current()
public
# key( )

Iterator: Key

Iterator: Key

Implementation of

Iterator::key()
public
# next( )

Iterator: Next

Iterator: Next

Implementation of

Iterator::next()
public
# valid( )

Iterator: Valid

Iterator: Valid

Implementation of

Iterator::valid()
Properties summary
protected array $headers
#

HTTP headers

HTTP headers

protected array $map
#

Map canonical header name to original header name

Map canonical header name to original header name

GeoApi API documentation generated by ApiGen 2.8.0