HttpMessage
in package
AbstractYes
Table of Contents
Methods
- __construct() : mixed
- getContent() : IHttpContent|null
- getHeader() : HttpHeader
- getHeaderFirstLine() : string
- getHeaderLine() : string
- getHeaderLines() : array<string|int, mixed>
- getHeaders() : array<string|int, mixed>
- getHttpVersion() : Version
- hasContent() : bool
- hasHeader() : bool
- isBencodedContent() : bool
- isFormContent() : bool
- isJsonContent() : bool
- isStreamContent() : bool
- isStringContent() : bool
Methods
__construct()
public
__construct(Version $version, HttpHeaders $headers, IHttpContent|null $content) : mixed
Parameters
- $version : Version
- $headers : HttpHeaders
- $content : IHttpContent|null
getContent()
public
getContent() : IHttpContent|null
Return values
IHttpContent|nullgetHeader()
public
getHeader(string $name) : HttpHeader
Parameters
- $name : string
Return values
HttpHeadergetHeaderFirstLine()
public
getHeaderFirstLine(string $name) : string
Parameters
- $name : string
Return values
stringgetHeaderLine()
public
getHeaderLine(string $name) : string
Parameters
- $name : string
Return values
stringgetHeaderLines()
public
getHeaderLines(string $name) : array<string|int, mixed>
Parameters
- $name : string
Return values
array<string|int, mixed>getHeaders()
public
getHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>getHttpVersion()
public
getHttpVersion() : Version
Return values
VersionhasContent()
public
hasContent() : bool
Return values
boolhasHeader()
public
hasHeader(string $name) : bool
Parameters
- $name : string
Return values
boolisBencodedContent()
public
isBencodedContent() : bool
Return values
boolisFormContent()
public
isFormContent() : bool
Return values
boolisJsonContent()
public
isJsonContent() : bool
Return values
boolisStreamContent()
public
isStreamContent() : bool
Return values
boolisStringContent()
public
isStringContent() : bool