aboutsummaryrefslogtreecommitdiff
path: root/doc/libmicrohttpd.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/libmicrohttpd.texi')
-rw-r--r--doc/libmicrohttpd.texi24
1 files changed, 17 insertions, 7 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi
index 43833cd6..497595cc 100644
--- a/doc/libmicrohttpd.texi
+++ b/doc/libmicrohttpd.texi
@@ -100,13 +100,23 @@ library.
100 100
101The library is supposed to handle everything that it must handle 101The library is supposed to handle everything that it must handle
102(because the API would not allow clients to do this), such as basic 102(because the API would not allow clients to do this), such as basic
103connection management; however, detailed interpretations of headers --- 103connection management. However, detailed interpretations of headers,
104such as range requests --- and HTTP methods are left to clients. The 104such as range requests, are left to the main application. In
105library does understand @code{HEAD} and will only send the headers of 105particular, if an application developer wants to support range
106the response and not the body, even if the client supplied a body. The 106requests, he needs to explicitly indicate support in responses and
107library also understands headers that control connection management 107also explicitly parse the range header and generate a response (for
108(specifically, @code{Connection: close} and @code{Expect: 100 continue} 108example, using the @code{MHD_create_response_from_fd_at_offset} call
109are understood and handled automatically). 109to serve ranges from a file). MHD does understands headers that
110control connection management (specifically, @code{Connection: close}
111and @code{Expect: 100 continue} are understood and handled
112automatically). @code{Connection: upgrade} is not yet supported.
113
114MHD also largely ignores the semantics of the different HTTP methods,
115so clients are left to handle those. One exception is that MHD does
116understand @code{HEAD} and will only send the headers of the response
117and not the body, even if the client supplied a body. (In fact,
118clients do need to construct a response with the correct length, even
119for @code{HEAD} request.)
110 120
111MHD understands @code{POST} data and is able to decode certain 121MHD understands @code{POST} data and is able to decode certain
112formats (at the moment only @code{application/x-www-form-urlencoded} 122formats (at the moment only @code{application/x-www-form-urlencoded}