~ubuntu-branches/ubuntu/jaunty/transmission/jaunty-security

« back to all changes in this revision

Viewing changes to third-party/libevent/evhttp.h

  • Committer: Bazaar Package Importer
  • Author(s): Philipp Benner
  • Date: 2007-11-22 12:37:14 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20071122123714-b0xi4zxhgk5qwbmc
Tags: 0.93.dfsg-2
* Added missing build-dependency (python).
* debian/control: switching to Homepage, Vcs-Browser and Vcs-Svn official
  fields (Leo "costela" Antunes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
 * @param error the HTTP error code
125
125
 * @param reason a brief explanation of the error
126
126
 */
127
 
void evhttp_send_error(struct evhttp_request *, int, const char *);
 
127
void evhttp_send_error(struct evhttp_request *req, int error,
 
128
    const char *reason);
128
129
 
129
130
/**
130
131
 * Send an HTML reply to the client.
134
135
 * @param reason a brief message to send with the response code
135
136
 * @param databuf the body of the response
136
137
 */
137
 
void evhttp_send_reply(struct evhttp_request *, int, const char *,
138
 
    struct evbuffer *);
 
138
void evhttp_send_reply(struct evhttp_request *req, int code,
 
139
    const char *reason, struct evbuffer *databuf);
139
140
 
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 *);
144
145
 
145
 
/*
 
146
/**
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
 *
 
150
 * @param address the address to which the HTTP server should be bound
 
151
 * @param port the port number on which the HTTP server should listen
 
152
 * @return an struct evhttp object
148
153
 */
149
154
struct evhttp *evhttp_start(const char *address, u_short port);
150
155