summaryrefslogtreecommitdiffstats
path: root/nanohttp/nanohttp-server.h
diff options
context:
space:
mode:
authorGravatar m0gg2007-01-01 18:58:05 +0000
committerGravatar m0gg2007-01-01 18:58:05 +0000
commit23629635c0d544c4fbbc0bd5d01dd75413942a3f (patch)
tree1a4dfb3e289e05f5eea6daff090a69a03ee9f122 /nanohttp/nanohttp-server.h
parentfbfd56fb7c1ce480d15682652d9c5f43aa16e0b1 (diff)
downloadcsoap-23629635c0d544c4fbbc0bd5d01dd75413942a3f.tar.gz
csoap-23629635c0d544c4fbbc0bd5d01dd75413942a3f.tar.bz2
WSDL via HTTP GET re-enabled
Diffstat (limited to 'nanohttp/nanohttp-server.h')
-rw-r--r--nanohttp/nanohttp-server.h43
1 files changed, 39 insertions, 4 deletions
diff --git a/nanohttp/nanohttp-server.h b/nanohttp/nanohttp-server.h
index bdb421c..53eb4a8 100644
--- a/nanohttp/nanohttp-server.h
+++ b/nanohttp/nanohttp-server.h
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: nanohttp-server.h,v 1.34 2006/12/31 17:24:22 m0gg Exp $
+ * $Id: nanohttp-server.h,v 1.35 2007/01/01 18:58:05 m0gg Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -321,10 +321,9 @@ extern void httpd_set_headers(httpd_conn_t * conn, hpair_t * header);
extern int httpd_add_header(httpd_conn_t * conn, const char *key, const char *value);
extern void httpd_add_headers(httpd_conn_t * conn, const hpair_t * values);
-/*
- * XXX: move to nanohttp-mime.c
+/**
*
- * MIME support httpd_mime_* function set
+ * @todo move to nanohttp-mime.c merge with httpc_mime_* functions
*
*/
@@ -359,6 +358,42 @@ extern herror_t httpd_mime_send_file(httpd_conn_t * conn, const char *content_id
*/
extern herror_t httpd_mime_end(httpd_conn_t * conn);
+/**
+ *
+ * Send a minimalistic HTML error document with HTTP status 500.
+ *
+ * @see HTTP_STATUS_500_REASON_PHRASE
+ *
+ */
+extern herror_t httpd_send_internal_error(httpd_conn_t * conn, const char *msg);
+
+/**
+ *
+ * Send a minimalistic HTML error document with HTTP status 501.
+ *
+ * @see HTTP_STATUS_501_REASON_PHRASE
+ *
+ */
+extern herror_t httpd_send_not_implemented(httpd_conn_t *conn, const char *msg);
+
+/**
+ *
+ * Send a minimalistic HTML error document with HTTP status 404.
+ *
+ * @see HTTP_STATUS_401_REASON_PHRASE
+ *
+ */
+extern herror_t httpd_send_bad_request(httpd_conn_t *conn, const char *msg);
+
+/**
+ *
+ * Send a minimalistc HTML error document with HTTP status 401.
+ *
+ * @see HTTP_STATUS_404_REASON_PHRASE
+ *
+ */
+extern herror_t httpd_send_unauthorized(httpd_conn_t *conn, const char *realm);
+
#ifdef __cplusplus
}
#endif