Index Documentation

HttpHeader
in package
implements Stringable

Represents a generic HTTP header.

Table of Contents

Interfaces

Stringable

Methods

__construct()  : mixed
__toString()  : string
getFirstLine()  : string
Retrieves the first line of the header.
getLines()  : array<string|int, string>
Retrieves lines of the header.
getName()  : string
Retrieves the name of the header.

Methods

__construct()

public __construct(string $name, string ...$lines) : mixed
Parameters
$name : string

Name of the header.

$lines : string

Lines of the header.

__toString()

public __toString() : string
Return values
string

getFirstLine()

Retrieves the first line of the header.

public getFirstLine() : string
Return values
string

First header line.

getLines()

Retrieves lines of the header.

public getLines() : array<string|int, string>
Return values
array<string|int, string>

Header lines.

getName()

Retrieves the name of the header.

public getName() : string
Return values
string

Header name.


        
On this page

Search results