API Documentation (v0.9.0-alpha)

Avolutions\Http\Response

An object that contains the response of the request.

Properties

Property Visibility Type Description
$body public ?string The content of the response.

Methods

Method Visibility Description
send() public Displays the content of the Response.
setBody() public Fills the Response body with the passed value.

Property Details

$body

The content of the response.

public string|null $body

Method Details

send()

Displays the content of the Response.

public send() : mixed
Return values
mixed Displays the content of the Response.
setBody()

Fills the Response body with the passed value.

public setBody(string|null $value) : mixed
Parameters

string|null $value
The value for the body

Return values
mixed Fills the Response body with the passed value.