Added: convert ngx_chain to apr_brigade