The OpenD Programming Language

cef_server_t.send_http_response

Send a custom HTTP response to the connection identified by |connection_id|. |response_code| is the HTTP response code sent in the status line (e.g. 200), |content_type| is the response content type sent as the "Content-Type" header (e.g. "text/html"), |content_length| is the expected content length, and |extra_headers| is the map of extra response headers. If |content_length| is >= 0 then the "Content-Length" header will be sent. If |content_length| is 0 then no content is expected and the connection will be closed automatically after the response is sent. If |content_length| is < 0 then no "Content-Length" header will be sent and the client will continue reading until the connection is closed. Use the SendRawData function to send the content, if applicable, and call CloseConnection after all content has been sent.

struct cef_server_t
extern (System)
void function(cef_server_t* self, int connection_id, int response_code, const(cef_string_t)* content_type, long content_length, cef_string_multimap_t extra_headers) nothrow send_http_response;

Meta