Documentation

Layer

HTTP headers abstractions

Tags
subpackage

Headers

author

Dodonov A.A.

version

v.1.0 (2022/01/16)

copyright

Copyright (c) 2022, http://aeon.su

Table of Contents

$headers  : array<string|int, string>
Request headers
addHeader()  : void
Additing header to the list of headers
getAllHeaders()  : array<string|int, string>
Method returns list of headers
setAllHeaders()  : void
Method sets headers for testing purposes

Properties

$headers

Request headers

private static array<string|int, string> $headers = []

Methods

addHeader()

Additing header to the list of headers

public static addHeader(string $headerName, string $headerValue) : void
Parameters
$headerName : string

header name

$headerValue : string

header value

Return values
void

getAllHeaders()

Method returns list of headers

public static getAllHeaders() : array<string|int, string>
Tags
psalm-suppress

MixedReturnTypeCoercion

Return values
array<string|int, string>

list of headers

setAllHeaders()

Method sets headers for testing purposes

public static setAllHeaders(array<string|int, string> $headers) : void
Parameters
$headers : array<string|int, string>

headers

Return values
void

Search results

    Яндекс.Метрика