aboutsummaryrefslogtreecommitdiff
path: root/doc/libmicrohttpd.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/libmicrohttpd.texi')
-rw-r--r--doc/libmicrohttpd.texi56
1 files changed, 56 insertions, 0 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi
index f229b033..1a530628 100644
--- a/doc/libmicrohttpd.texi
+++ b/doc/libmicrohttpd.texi
@@ -958,6 +958,33 @@ own private copy of the data for processing.
958@end deftp 958@end deftp
959 959
960 960
961@deftp {Enumeration} MHD_ResponseFlags
962Response-specific flags. Passed as an argument to
963@code{MHD_set_response_options()}.
964
965@table @code
966@item MHD_RF_NONE
967No special handling.
968
969@item MHD_RF_HTTP_VERSION_1_0_ONLY
970Only respond in conservative HTTP 1.0-mode. In particular,
971do not (automatically) sent "Connection" headers and always
972close the connection after generating the response.
973
974@end table
975@end deftp
976
977
978@deftp {Enumeration} MHD_ResponseOptions
979Response-specific options. Passed in the varargs portion of
980@code{MHD_set_response_options()}.
981
982@table @code
983@item MHD_RO_END
984No more options / last option. This is used to terminate the VARARGs
985list.
986@end table
987@end deftp
961 988
962 989
963@c ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 990@c ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@@ -1559,6 +1586,7 @@ response and we finally destroy it only when the daemon shuts down.
1559* microhttpd-response enqueue:: Enqueuing a response. 1586* microhttpd-response enqueue:: Enqueuing a response.
1560* microhttpd-response create:: Creating a response object. 1587* microhttpd-response create:: Creating a response object.
1561* microhttpd-response headers:: Adding headers to a response. 1588* microhttpd-response headers:: Adding headers to a response.
1589* microhttpd-response options:: Setting response options.
1562* microhttpd-response inspect:: Inspecting a response object. 1590* microhttpd-response inspect:: Inspecting a response object.
1563@end menu 1591@end menu
1564 1592
@@ -1852,6 +1880,34 @@ Delete a header (or footer) line from the response. Return @code{MHD_NO} on err
1852@end deftypefun 1880@end deftypefun
1853 1881
1854 1882
1883@c ------------------------------------------------------------
1884@node microhttpd-response options
1885@section Setting response options
1886
1887
1888@deftypefun int MHD_set_response_options (struct MHD_Response *response, enum MHD_ResponseFlags flags, ...)
1889Set special flags and options for a response.
1890
1891Calling this functions sets the given flags and options for the response.
1892
1893@table @var
1894@item response
1895which response should be modified;
1896
1897@item flags
1898flags to set for the response;
1899
1900@end table
1901
1902Additional arguments are a list of options (type-value pairs,
1903terminated with @code{MHD_RO_END}). It is mandatory to use
1904@code{MHD_RO_END} as last argument, even when there are no
1905additional arguments.
1906
1907Return @code{MHD_NO} on error, @code{MHD_YES} on success.
1908@end deftypefun
1909
1910
1855@c ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1911@c ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1856 1912
1857@c ------------------------------------------------------------ 1913@c ------------------------------------------------------------