HttpMessageBuilder
in package
Table of Contents
Methods
- __construct() : mixed
- addHeader() : void
- getHeadersBuilder() : HttpHeadersBuilder
- hasContent() : bool
- hasHeader() : bool
- removeHeader() : void
- setContent() : void
- setHeader() : void
- setHttpVersion() : void
Methods
__construct()
public
__construct() : mixed
addHeader()
public
addHeader(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed
getHeadersBuilder()
public
getHeadersBuilder() : HttpHeadersBuilder
Return values
HttpHeadersBuilderhasContent()
public
hasContent() : bool
Tags
Return values
boolhasHeader()
public
hasHeader(string $name) : bool
Parameters
- $name : string
Return values
boolremoveHeader()
public
removeHeader(string $name) : void
Parameters
- $name : string
setContent()
public
setContent(IHttpContent|Stream|string|null $content) : void
Parameters
- $content : IHttpContent|Stream|string|null
setHeader()
public
setHeader(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed
setHttpVersion()
public
setHttpVersion(Version $version) : void
Parameters
- $version : Version