Documentation

ResponseInterface

Represents the HTTP response

Table of Contents

clearHeaders()  : void
Clears the headers
header()  : mixed
Returns with a header value by name
send()  : void
Sends the headers then the given body content
setHeader()  : void
Sets a header for the response

Methods

clearHeaders()

Clears the headers

public clearHeaders() : void
Return values
void

header()

Returns with a header value by name

public header(string $name[, mixed $default = null ]) : mixed
Parameters
$name : string
$default : mixed = null
Return values
mixed

send()

Sends the headers then the given body content

public send([string $content = '' ]) : void
Parameters
$content : string = ''
Return values
void

setHeader()

Sets a header for the response

public setHeader(string $name, string $value) : void
Parameters
$name : string
$value : string
Return values
void

Search results