FreeBSD/contrib/serf/outgoing.c
/* A response message was received from the server, so call
   the handler as specified on the original request. */
A response message was received from the server, so call
the handler as specified on the original request.
A response message was received from the server so call the handler as specified on the original request .
static apr_status_t handle_response(serf_request_t *request,
                                    apr_pool_t *pool)
{
    apr_status_t status = APR_SUCCESS;
    int consumed_response = 0;
    if (request->conn->ctx->cred_cb) {
      status = serf__handle_auth_response(&consumed_response,
                                          request,
                                          request->resp_bkt,
                                          request->handler_baton,
                                          pool);
      if (status) {
          return status;
      }
    }
    if (!consumed_response) {
        return (*request->handler)(request,
                                   request->resp_bkt,
                                   request->handler_baton,
                                   pool);
    }
    return status;
}
static apr_status_t handle_response ( serf_request_t * request , apr_pool_t * pool ) { apr_status_t status = APR_SUCCESS ; int consumed_response = 0 ; if ( request -> conn -> ctx -> cred_cb ) { status = serf__handle_auth_response ( & consumed_response , request , request -> resp_bkt , request -> handler_baton , pool ) ; if ( status ) { return status ; } } if ( ! consumed_response ) { return ( * request -> handler ) ( request , request -> resp_bkt , request -> handler_baton , pool ) ; } return status ; }
A response message was received from the server, so call
the handler as specified on the original request.
A response message was received from the server so call the handler as specified on the original request .
/* Only enable the new authentication framework if the program has
     * registered an authentication credential callback.
     *
     * This permits older Serf apps to still handle authentication
     * themselves by not registering credential callbacks.
     */ /* If there was an error reading the response (maybe there wasn't
         enough data available), don't bother passing the response to the
         application.

         If the authentication was tried, but failed, pass the response
         to the application, maybe it can do better. */