Lines Matching refs:output_buffer
387 evbuffer_add_printf(evcon->output_buffer, "%s %s HTTP/%d.%d\r\n", in evhttp_make_header_request()
395 (long)EVBUFFER_LENGTH(req->output_buffer)); in evhttp_make_header_request()
465 evbuffer_add_printf(evcon->output_buffer, "HTTP/%d.%d %d %s\r\n", in evhttp_make_header_response()
489 (long)EVBUFFER_LENGTH(req->output_buffer)); in evhttp_make_header_response()
494 if (EVBUFFER_LENGTH(req->output_buffer)) { in evhttp_make_header_response()
527 evbuffer_add_printf(evcon->output_buffer, "%s: %s\r\n", in evhttp_make_header()
530 evbuffer_add(evcon->output_buffer, "\r\n", 2); in evhttp_make_header()
532 if (EVBUFFER_LENGTH(req->output_buffer) > 0) { in evhttp_make_header()
537 evbuffer_add_buffer(evcon->output_buffer, req->output_buffer); in evhttp_make_header()
685 n = evbuffer_write(evcon->output_buffer, fd); in evhttp_write()
698 if (EVBUFFER_LENGTH(evcon->output_buffer) != 0) { in evhttp_write()
1022 if (evcon->output_buffer != NULL) in evhttp_connection_free()
1023 evbuffer_free(evcon->output_buffer); in evhttp_connection_free()
1089 evbuffer_drain(evcon->output_buffer, in evhttp_connection_reset()
1090 EVBUFFER_LENGTH(evcon->output_buffer)); in evhttp_connection_reset()
1704 if ((evcon->output_buffer = evbuffer_new()) == NULL) { in evhttp_connection_new()
1925 evbuffer_add_buffer(req->output_buffer, databuf); in evhttp_send()
1961 evbuffer_add_printf(req->evcon->output_buffer, "%x\r\n", in evhttp_send_reply_chunk()
1964 evbuffer_add_buffer(req->evcon->output_buffer, databuf); in evhttp_send_reply_chunk()
1966 evbuffer_add(req->evcon->output_buffer, "\r\n", 2); in evhttp_send_reply_chunk()
1977 evbuffer_add(req->evcon->output_buffer, "0\r\n\r\n", 5); in evhttp_send_reply_end()
2467 if ((req->output_buffer = evbuffer_new()) == NULL) { in evhttp_request_new()
2502 if (req->output_buffer != NULL) in evhttp_request_free()
2503 evbuffer_free(req->output_buffer); in evhttp_request_free()