Message Trait Additional methods to make a PSR-7 Message class compliant with the framework's own MessageInterface.
Methods | ||
---|---|---|
public
|
setBody(string $data): $this
|
# |
public
|
appendBody(mixed $data): $this
|
# |
public
|
populateHeaders(): void
|
# |
public
|
headers(): array<string, Header>
|
# |
public
|
header(string $name): array|Header|null
|
# |
public
|
setHeader(string $name, array|string|null $value): $this
|
# |
public
|
removeHeader(string $name): $this
|
# |
public
|
appendHeader(string $name, ?string $value): $this
|
# |
public
|
prependHeader(string $name, string $value): $this
|
# |
protected
|
getHeaderName(string $name): string
|
# |
public
|
setProtocolVersion(string $version): $this
|
# |
Properties | |||
---|---|---|---|
protected
|
array<string, Header>
|
$headers = []
|
# |
protected
|
array
|
$headerMap = []
|
# |