Home | History | Annotate | Download | only in libevent

Lines Matching refs:request

375  * Create the headers needed for an HTTP request
385 /* Generate request line */
390 /* Add the content length on a post request if missing */
502 /* if the request asked for a close, we send a close, too */
517 * Depending if this is a HTTP request or response, we might need to
534 * For a request, we add the POST data, for a reply, this
572 /* Generate request file */
665 /* We are trying the next request that was queued on us */
713 * - If this is an incoming connection, we've just processed the request;
741 * and deal with the next request.
756 * incoming connection - we need to leave the request on the
762 /* notify the user of the request */
765 /* if this was an outgoing request, we own and it's done. so free it */
772 * Handles reading from a chunked request.
780 * request was canceled by the user calling evhttp_cancel_request
877 /* request canceled */
966 /* This is after writing the request to the server */
1186 struct evhttp_request *request = TAILQ_FIRST(&evcon->requests);
1187 TAILQ_REMOVE(&evcon->requests, request, next);
1188 request->evcon = NULL;
1191 request->cb(request, request->cb_arg);
1192 evhttp_request_free(request);
1251 /* Parse the first line of a HTTP request */
1260 /* Parse the request line */
1279 event_debug(("%s: bad method %s on request %p from %s",
1291 event_debug(("%s: bad version %s on request %p from %s",
1301 /* determine if it's a proxy request */
1425 * Parses header lines from a request or a response into the specified
1426 * request object given an event buffer.
1574 /* If this is a request without a body, then we are done */
1793 * Starts an HTTP request on the provided evhttp_connection object.
1803 /* We are making a request */
1829 * then we can dispatch this request immediately. Otherwise, it
1839 * Reads data from file descriptor into request structure
1840 * Request structure needs to be set up correctly.
1880 /* we have a persistent connection; try to accept another request. */
1896 "Invalid method in request<P>\n" \
1981 /* let the connection know that we are done with the request */
2194 evhttp_send_error(req, HTTP_BADREQUEST, "Bad Request");
2433 * Request related functions
2441 /* Allocate request structure */
2516 * Allows for inspection of the request URI
2522 event_debug(("%s: request %p has no uri\n", __func__, req));
2527 * Takes a file descriptor to read a request from.
2528 * The callback is executed once the whole request has been read.
2546 event_debug(("%s: new request from %s:%s on %d\n",
2549 /* we need a connection object to put the http request on */
2575 req->evcon = evcon; /* the request ends up owning the connection */
2606 * if we want to accept more than one request on a connection,