return (escaped_html);
}
-const char *
+static const char *
evhttp_method(enum evhttp_cmd_type type)
{
const char *method;
(*evcon->cb)(evcon, evcon->cb_arg);
}
-void
+static void
evhttp_connection_done(struct evhttp_connection *evcon)
{
struct evhttp_request *req = TAILQ_FIRST(&evcon->requests);
int con_outgoing = evcon->flags & EVHTTP_CON_OUTGOING;
-
+
/*
* if this is an incoming connection, we need to leave the request
* on the connection, so that we can reply to it.
return (0);
}
-void
+static void
evhttp_read_body(struct evhttp_connection *evcon, struct evhttp_request *req)
{
struct evbuffer *buf = evcon->input_buffer;
evhttp_read_body(evcon, req);
}
-void
+static void
evhttp_write_connectioncb(struct evhttp_connection *evcon, void *arg)
{
/* This is after writing the request to the server */
* Check if we got a valid response code.
*/
-int
+static int
evhttp_valid_response_code(int code)
{
if (code == 0)
/* Parses the status line of a web server */
-int
+static int
evhttp_parse_response_line(struct evhttp_request *req, char *line)
{
char *protocol;
/* Parse the first line of a HTTP request */
-int
+static int
evhttp_parse_request_line(struct evhttp_request *req, char *line)
{
char *method;
evhttp_add_event(&evcon->ev, evcon->timeout, HTTP_READ_TIMEOUT);
}
-void
+static void
evhttp_send_done(struct evhttp_connection *evcon, void *arg)
{
int need_close;
return (NULL);
}
-void
+static void
evhttp_handle_request(struct evhttp_request *req, void *arg)
{
struct evhttp *http = arg;
}
static struct evhttp*
-evhttp_new_object()
+evhttp_new_object(void)
{
struct evhttp *http = NULL;