commit 26b9a9d23875063ef09df287acfff9edf6437b81 parent 4811d60ef32482c6a4a8ae86c967d2c870255272 Author: Christian Grothoff <grothoff@gnunet.org> Date: Mon, 28 Apr 2025 12:21:44 +0200 add missing fragement Diffstat:
| A | doc/examples/simple_reply_fragment.c | | | 13 | +++++++++++++ |
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/doc/examples/simple_reply_fragment.c b/doc/examples/simple_reply_fragment.c @@ -0,0 +1,13 @@ +struct MHD_Action * +simple_reply_to_request (struct MHD_Request *request) +{ + const char *data = "<html><body><p>Error!</p></body></html>"; + + return MHD_action_from_response ( + request, + MHD_response_from_buffer_static ( + MHD_HTTP_STATUS_NOT_FOUND, + strlen (data), + data); + ); +}