src/elastic-connection.c
static void
elastic_connection_http_response(const struct http_response *response,
                                 struct elastic_connection *conn)
{
    FUNC_START();
    if (response != NULL && conn != NULL) {
        switch (conn->post_type) {
        case ELASTIC_POST_TYPE_SEARCH:
            elastic_connection_search_response(response, conn);
            break;
        case ELASTIC_POST_TYPE_BULK:
            elastic_connection_bulk_response(response, conn);
            break;
        case ELASTIC_POST_TYPE_REFRESH:
        case ELASTIC_POST_TYPE_DELETE:
        case ELASTIC_POST_TYPE_DELETE_BY_QUERY:
            /* not implemented */
            break;
        }
    }
    FUNC_END();
}
/* Callback from HTTP request
 * according to post_type decides which callback calls */
Callback from HTTP request
according to post_type decides which callback calls
Callback from HTTP request according to post_type decides which callback calls
static void
elastic_connection_http_response(const struct http_response *response,
                                 struct elastic_connection *conn)
{
    FUNC_START();
    if (response != NULL && conn != NULL) {
        switch (conn->post_type) {
        case ELASTIC_POST_TYPE_SEARCH:
            elastic_connection_search_response(response, conn);
            break;
        case ELASTIC_POST_TYPE_BULK:
            elastic_connection_bulk_response(response, conn);
            break;
        case ELASTIC_POST_TYPE_REFRESH:
        case ELASTIC_POST_TYPE_DELETE:
        case ELASTIC_POST_TYPE_DELETE_BY_QUERY:
            break;
        }
    }
    FUNC_END();
}
static void elastic_connection_http_response ( const struct http_response * response , struct elastic_connection * conn ) { FUNC_START ( ) ; if ( response != NULL && conn != NULL ) { switch ( conn -> post_type ) { case ELASTIC_POST_TYPE_SEARCH : elastic_connection_search_response ( response , conn ) ; break ; case ELASTIC_POST_TYPE_BULK : elastic_connection_bulk_response ( response , conn ) ; break ; case ELASTIC_POST_TYPE_REFRESH : case ELASTIC_POST_TYPE_DELETE : case ELASTIC_POST_TYPE_DELETE_BY_QUERY : break ; } } FUNC_END ( ) ; }
Callback from HTTP request
 according to post_type decides which callback calls
Callback from HTTP request according to post_type decides which callback calls
/* not implemented */