3 namespace Friendica\Capabilities;
6 * This interface provides the capability to handle requests from clients and returns the desired outcome
8 interface ICanHandleRequests
11 * Module GET method to display raw content from technical endpoints
13 * Extend this method if the module is supposed to return communication data,
14 * e.g. from protocol implementations.
16 public function rawContent();
19 * Module GET method to display any content
21 * Extend this method if the module is supposed to return any display
22 * through a GET request. It can be an HTML page through templating or a
23 * XML feed or a JSON output.
25 public function content(): string;
28 * Module DELETE method to process submitted data
30 * Extend this method if the module is supposed to process DELETE requests.
31 * Doesn't display any content
33 public function delete();
36 * Module PATCH method to process submitted data
38 * Extend this method if the module is supposed to process PATCH requests.
39 * Doesn't display any content
41 public function patch();
44 * Module POST method to process submitted data
46 * Extend this method if the module is supposed to process POST requests.
47 * Doesn't display any content
49 public function post();
52 * Module PUT method to process submitted data
54 * Extend this method if the module is supposed to process PUT requests.
55 * Doesn't display any content
57 public function put();
59 public function getClassName(): string;