Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 2006 Pekka Riikonen
+ Copyright (C) 2006 - 2007 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
* Very simple HTTP server interface. This HTTP server supports basic HTTP
* features. All pages on the server are dynamically created by the caller
* of this interface. The server does not support plugins, modules, cgi-bin,
- * server-side includes or any other special features.
+ * server-side includes or any other special features. Naturally, the caller
+ * of this interface may itself implement such features.
*
***/
*
* DESCRIPTION
*
- * The HTTP request callback, that is called everytime a new HTTP request
+ * The HTTP request callback that is called everytime a new HTTP request
* comes from a HTTP client. The `uri' is the requested URI (web page),
* and the `method' is the HTTP request method (GET, POST, etc.). The
* `data' is non-NULL only if the `method' is POST, and it includes the
* `port'. The `callback' with `context' will be called everytime a new
* HTTP request comes to the server from a HTTP client. In that callback
* the caller must then reply with the requested Web page or with error.
+ * If the `schedule' is NULL this will call silc_schedule_get_global to
+ * try to get global scheduler.
*
***/
SilcHttpServer silc_http_server_alloc(const char *ip, SilcUInt16 port,
*
* Finds a header field indicated by `field' from the current HTTP
* request sent by the HTTP client. Returns the field value or NULL
- * if suchs header field does not exist.
+ * if such header field does not exist.
*
***/
const char *silc_http_server_get_header(SilcHttpServer httpd,
* EXAMPLE
*
* silc_http_server_add_header(httpd, conn, "Content-Type", "image/jpeg");
+ * silc_http_server_send(httpd, conn, image_data);
*
***/
SilcBool silc_http_server_add_header(SilcHttpServer httpd,