134
135
* @param reason a brief message to send with the response code
135
136
* @param databuf the body of the response
137
void evhttp_send_reply(struct evhttp_request *, int, const char *,
140
141
/* Low-level response interface, for streaming/chunked replies */
141
142
void evhttp_send_reply_start(struct evhttp_request *, int, const char *);
142
143
void evhttp_send_reply_chunk(struct evhttp_request *, struct evbuffer *);
143
144
void evhttp_send_reply_end(struct evhttp_request *);
146
147
* Start an HTTP server on the specified address and port
147
148
* DEPRECATED: it does not allow an event base to be specified
149
154
struct evhttp *evhttp_start(const char *address, u_short port);