IContentHandler
in
Represents a content handler for building HTTP response messages.
Table of Contents
Methods
- handle() : void
- Handles body content.
- match() : bool
- Determines whether this handler is suitable for the body content.
Methods
handle()
Handles body content.
public
handle(HttpResponseBuilder $response, mixed $content) : void
Parameters
- $response : HttpResponseBuilder
-
Response to apply this body to.
- $content : mixed
-
Body to apply to the response message.
match()
Determines whether this handler is suitable for the body content.
public
match(mixed $content) : bool
Parameters
- $content : mixed
-
Content to be judged.
Return values
bool —true if suitable, false if not.