Class Header
Represents a single HTTP header.
Methods | ||
---|---|---|
public
|
__construct(string $name, array<int|string, array<string, string>|string>|string|null $value = null)
|
# |
public
|
getName(): string
|
# |
public
|
getValue(): array<int|string, array<string, string>|string>|string
|
# |
public
|
setName(string $name): $this
|
# |
public
|
setValue(array<int|string, array<string, string>|string>|string|null $value = null): $this
|
# |
public
|
appendValue(array<string, string>|string|null $value = null): $this
|
# |
public
|
prependValue(array<string, string>|string|null $value = null): $this
|
# |
public
|
getValueLine(): string
|
# |
public
|
__toString(): string
|
# |
Properties | |||
---|---|---|---|
protected
|
string
|
$name
|
# |
protected
|
array<int|string, array<string, string>|string>|string
|
$value
|
# |