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 | # | 
| 
					
	private
					
					
				 | setHeaders((string|string[])[] $headers): void | # | 
| 
					
	private
					
					
				 | normalizeHeaderValue(mixed $value): string[] | # | 
| 
					
	private
					
					
				 | trimAndValidateHeaderValues(mixed[] $values): string[] | # | 
| 
					
	private
					
					
				 | assertHeader(mixed $header): void | # | 
| 
					
	private
					
					
				 | assertValue(string $value): void | # | 
| Properties | |||
|---|---|---|---|
| 
	private
					
					
				 | string[][] | $headers = [] | # | 
| 
	private
					
					
				 | string[] | $headerNames = [] | # | 
| 
	private
					
					
				 | string | $protocol = '1.1' | # | 
| 
	private
					
					
				 | StreamInterface|null | $stream | # |