Next: , Previous: , Up: Top [Contents][Index]


8 Building responses to requests

Response objects handling by MHD is asynchronous with respect to the application execution flow. Instances of the MHD_Response structure are not associated to a daemon and neither to a client connection: they are managed with reference counting.

In the simplest case: we allocate a new MHD_Response structure for each response, we use it once and finally we destroy it.

MHD allows more efficient resources usages.

Example: we allocate a new MHD_Response structure for each response kind, we use it every time we have to give that response and we finally destroy it only when the daemon shuts down.

microhttpd-response enqueue Enqueuing a response.
microhttpd-response create Creating a response object.
microhttpd-response headers Adding headers to a response.
microhttpd-response options Setting response options.
microhttpd-response inspect Inspecting a response object.
microhttpd-response upgrade Creating a response for protocol upgrades.

AltStyle によって変換されたページ (->オリジナル) /