Trait implementing functionality common to requests and responses.
Methods | ||
---|---|---|
public
|
getProtocolVersion(): string
|
# |
public
|
withProtocolVersion($version): MessageInterface
|
# |
public
|
getHeaders(): array
|
# |
public
|
hasHeader($header): bool
|
# |
public
|
getHeader($header): array
|
# |
public
|
getHeaderLine($header): string
|
# |
public
|
withHeader($header, $value): MessageInterface
|
# |
public
|
withAddedHeader($header, $value): MessageInterface
|
# |
public
|
withoutHeader($header): MessageInterface
|
# |
public
|
getBody(): StreamInterface
|
# |
public
|
withBody(StreamInterface $body): MessageInterface
|
# |