Repository navigation
Internals Response Interface SenderInterface
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/response/interface/SenderInterface.php · Snapshot 8411f4287706.
Response builds status, headers and data/file payloads, chooses a MIME sender, and emits HTTP output. JSON arrays are wrapped in a status/message/data envelope.
interface SenderInterfaceNo own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.
| Method | Signature |
|---|---|
| send | public function send(mixed $payload, int $status, array $headers): void |
| supportedMimes | public function supportedMimes(): array |
public function send(mixed $payload, int $status, array $headers): void;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$payload |
mixed $payload |
Raw data, file path, or structured array. |
$status |
int $status |
HTTP status code. |
$headers |
array $headers |
Extra headers to emit before sending body. |
Emit the response to the client.
@param mixed $payload Raw data, file path, or structured array. @param int $status HTTP status code. @param array $headers Extra headers to emit before sending body.
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function supportedMimes(): array;MIME types this sender is responsible for.
@return string[]
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
AWT Framework Wiki · Home · Installation Guide · Developer Guide · Framework Internals
Philosophy · Architecture · Known discrepancies · Verification
Installation Guide
Developer Guide
- Learning sequence
- First package
- Package structure
- Lifecycle
- Runtimes
- Events and objects
- Routing and controllers
- Views and resources
- Database and models
- Storage and caching
- Configuration and CLI
- Responses and errors
- Extension points
Framework Internals
- Architecture
- Bootstrap
- Packages
- Runtime
- Events and context
- Objects
- HTTP routing and controllers
- Rendering
- Blade integration
- Database
- Models
- Storage and caching
- Settings
- CLI
- Identity and sessions
- Responses
- Errors
- Complete source inventory
Documentation notes