Collects information about a response to send for a request.
__construct(int $statusCode, array $headers, string $body)
intThe HTTP status code to send.
arrayThe HTTP headers to send.
stringThe body data to send.
send()
statusCode :
| type |
int |
|---|---|
headers :
| type |
array |
|---|---|
body :
| type |
string |
|---|---|