3 namespace Friendica\Capabilities;
6 * This interface provides the capability to handle requests from clients and returns the desired outcome
8 interface ICanHandleRequests
11 * Initialization method common to both content() and post()
13 * Extend this method if you need to do any shared processing before both
16 public static function init();
19 * Module GET method to display raw content from technical endpoints
21 * Extend this method if the module is supposed to return communication data,
22 * e.g. from protocol implementations.
24 public static function rawContent();
27 * Module GET method to display any content
29 * Extend this method if the module is supposed to return any display
30 * through a GET request. It can be an HTML page through templating or a
31 * XML feed or a JSON output.
35 public static function content();
38 * Module DELETE method to process submitted data
40 * Extend this method if the module is supposed to process DELETE requests.
41 * Doesn't display any content
43 public static function delete();
46 * Module PATCH method to process submitted data
48 * Extend this method if the module is supposed to process PATCH requests.
49 * Doesn't display any content
51 public static function patch();
54 * Module POST method to process submitted data
56 * Extend this method if the module is supposed to process POST requests.
57 * Doesn't display any content
59 public static function post();
66 public static function afterpost();
69 * Module PUT method to process submitted data
71 * Extend this method if the module is supposed to process PUT requests.
72 * Doesn't display any content
74 public static function put();
76 public static function getClassName(): string;