comparison src/http/v3/ngx_http_v3_streams.c @ 8771:0981329169ea quic

HTTP/3: renamed ngx_http_v3_client_XXX() functions. The functions are renamed to ngx_http_v3_send_XXX() similar to ngx_http_v3_send_settings() and ngx_http_v3_send_goaway().
author Roman Arutyunyan <arut@nginx.com>
date Tue, 27 Apr 2021 21:32:50 +0300
parents 67f0eb150047
children 345370fdd32d
comparison
equal deleted inserted replaced
8770:67f0eb150047 8771:0981329169ea
595 return NGX_ERROR; 595 return NGX_ERROR;
596 } 596 }
597 597
598 598
599 ngx_int_t 599 ngx_int_t
600 ngx_http_v3_client_ref_insert(ngx_connection_t *c, ngx_uint_t dynamic, 600 ngx_http_v3_send_ref_insert(ngx_connection_t *c, ngx_uint_t dynamic,
601 ngx_uint_t index, ngx_str_t *value) 601 ngx_uint_t index, ngx_str_t *value)
602 { 602 {
603 u_char *p, buf[NGX_HTTP_V3_PREFIX_INT_LEN * 2]; 603 u_char *p, buf[NGX_HTTP_V3_PREFIX_INT_LEN * 2];
604 size_t n; 604 size_t n;
605 ngx_connection_t *ec; 605 ngx_connection_t *ec;
641 return NGX_ERROR; 641 return NGX_ERROR;
642 } 642 }
643 643
644 644
645 ngx_int_t 645 ngx_int_t
646 ngx_http_v3_client_insert(ngx_connection_t *c, ngx_str_t *name, 646 ngx_http_v3_send_insert(ngx_connection_t *c, ngx_str_t *name, ngx_str_t *value)
647 ngx_str_t *value)
648 { 647 {
649 u_char buf[NGX_HTTP_V3_PREFIX_INT_LEN]; 648 u_char buf[NGX_HTTP_V3_PREFIX_INT_LEN];
650 size_t n; 649 size_t n;
651 ngx_connection_t *ec; 650 ngx_connection_t *ec;
652 651
691 return NGX_ERROR; 690 return NGX_ERROR;
692 } 691 }
693 692
694 693
695 ngx_int_t 694 ngx_int_t
696 ngx_http_v3_client_set_capacity(ngx_connection_t *c, ngx_uint_t capacity) 695 ngx_http_v3_send_set_capacity(ngx_connection_t *c, ngx_uint_t capacity)
697 { 696 {
698 u_char buf[NGX_HTTP_V3_PREFIX_INT_LEN]; 697 u_char buf[NGX_HTTP_V3_PREFIX_INT_LEN];
699 size_t n; 698 size_t n;
700 ngx_connection_t *ec; 699 ngx_connection_t *ec;
701 700
718 return NGX_OK; 717 return NGX_OK;
719 } 718 }
720 719
721 720
722 ngx_int_t 721 ngx_int_t
723 ngx_http_v3_client_duplicate(ngx_connection_t *c, ngx_uint_t index) 722 ngx_http_v3_send_duplicate(ngx_connection_t *c, ngx_uint_t index)
724 { 723 {
725 u_char buf[NGX_HTTP_V3_PREFIX_INT_LEN]; 724 u_char buf[NGX_HTTP_V3_PREFIX_INT_LEN];
726 size_t n; 725 size_t n;
727 ngx_connection_t *ec; 726 ngx_connection_t *ec;
728 727
745 return NGX_OK; 744 return NGX_OK;
746 } 745 }
747 746
748 747
749 ngx_int_t 748 ngx_int_t
750 ngx_http_v3_client_ack_header(ngx_connection_t *c, ngx_uint_t stream_id) 749 ngx_http_v3_send_ack_header(ngx_connection_t *c, ngx_uint_t stream_id)
751 { 750 {
752 u_char buf[NGX_HTTP_V3_PREFIX_INT_LEN]; 751 u_char buf[NGX_HTTP_V3_PREFIX_INT_LEN];
753 size_t n; 752 size_t n;
754 ngx_connection_t *dc; 753 ngx_connection_t *dc;
755 754
772 return NGX_OK; 771 return NGX_OK;
773 } 772 }
774 773
775 774
776 ngx_int_t 775 ngx_int_t
777 ngx_http_v3_client_cancel_stream(ngx_connection_t *c, ngx_uint_t stream_id) 776 ngx_http_v3_send_cancel_stream(ngx_connection_t *c, ngx_uint_t stream_id)
778 { 777 {
779 u_char buf[NGX_HTTP_V3_PREFIX_INT_LEN]; 778 u_char buf[NGX_HTTP_V3_PREFIX_INT_LEN];
780 size_t n; 779 size_t n;
781 ngx_connection_t *dc; 780 ngx_connection_t *dc;
782 781
799 return NGX_OK; 798 return NGX_OK;
800 } 799 }
801 800
802 801
803 ngx_int_t 802 ngx_int_t
804 ngx_http_v3_client_inc_insert_count(ngx_connection_t *c, ngx_uint_t inc) 803 ngx_http_v3_send_inc_insert_count(ngx_connection_t *c, ngx_uint_t inc)
805 { 804 {
806 u_char buf[NGX_HTTP_V3_PREFIX_INT_LEN]; 805 u_char buf[NGX_HTTP_V3_PREFIX_INT_LEN];
807 size_t n; 806 size_t n;
808 ngx_connection_t *dc; 807 ngx_connection_t *dc;
809 808