3 namespace Friendica\Capabilities;
5 interface IRespondToRequests
7 const TYPE_CONTENT = 'content';
8 const TYPE_RAW_CONTENT = 'rawContent';
9 const TYPE_POST = 'post';
10 const TYPE_PUT = 'put';
11 const TYPE_DELETE = 'delete';
12 const TYPE_PATCH = 'patch';
14 const ALLOWED_TYPES = [
16 self::TYPE_RAW_CONTENT,
24 * Returns all set headers during the module execution
28 public function getHeaders(): array;
31 * Returns the output of the module
35 public function getContent(): string;
38 * Returns the response type of the current request
42 public function getTyp(): string;