Expected behavior of an HTTP message
Methods | ||
---|---|---|
public
|
getProtocolVersion(): string
|
# |
public
|
setBody(mixed $data): $this
|
# |
public
|
getBody(): string|null
|
# |
public
|
appendBody(mixed $data): $this
|
# |
public
|
populateHeaders(): void
|
# |
public
|
headers(): array<string, Header>
|
# |
public
|
hasHeader(string $name): bool
|
# |
public
|
header(string $name): array|Header|null
|
# |
public
|
getHeaderLine(string $name): string
|
# |
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
|
# |
public
|
setProtocolVersion(string $version): $this
|
# |