LFT
  • Namespace
  • Class
  • Tree

Namespaces

  • Docoflow
    • Contracts
    • Entity
    • Facades
    • Models
    • Traits
  • Docolight
    • Agno
      • Traits
    • Container
    • Http
      • Contracts
    • Rest
      • Handler
      • Http
    • Support
      • Debug
      • Traits
  • Docotory
    • Traits
  • None

Classes

  • Headers
  • JsonResponse
  • MimeResponse
  • Response
  • ResponseFactory

Class Headers

HTTP Headers.

$headers = new Docolight\Http\Headers;

$headers->set('My-Header-Index', 'My header value');
Docolight\Support\Set implements ArrayAccess, Countable, IteratorAggregate
Extended by Docolight\Http\Headers
Namespace: Docolight\Http
Author: Krisan Alfa Timur krisanalfa@docotel.co.id
Located at Docolight/Http/Headers.php

Methods summary

public static array
# extract( array $data )

Extract HTTP headers from an array of data (e.g. $_SERVER).

Extract HTTP headers from an array of data (e.g. $_SERVER).

Parameters

$data

Returns

array
protected string
# normalizeKey( string $key )

Transform header name into canonical form.

Transform header name into canonical form.

Parameters

$key

Returns

string

Overrides

Docolight\Support\Set::normalizeKey

Methods inherited from Docolight\Support\Set

__construct(), __get(), __isset(), __set(), __unset(), all(), clear(), count(), get(), getIterator(), has(), keys(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), protect(), remove(), replace(), set(), singleton()

Properties summary

protected static array $special

Special-case HTTP headers that are otherwise unidentifiable as HTTP headers. Typically, HTTP headers in the $_SERVER array will be prefixed with HTTP_ or X_. These are not so we list them here for later reference.

Special-case HTTP headers that are otherwise unidentifiable as HTTP headers. Typically, HTTP headers in the $_SERVER array will be prefixed with HTTP_ or X_. These are not so we list them here for later reference.

# array( 'CONTENT_TYPE', 'CONTENT_LENGTH', 'PHP_AUTH_USER', 'PHP_AUTH_PW', 'PHP_AUTH_DIGEST', 'AUTH_TYPE', )

Properties inherited from Docolight\Support\Set

$data

LFT API documentation generated by ApiGen