Lines Matching defs:resp
66 auto &resp = downstream->response();
69 resp.connection_close = true;
925 auto &resp = downstream->response();
930 for (auto &kv : resp.fs.headers()) {
942 resp.http_status = htp->status_code;
943 resp.http_major = htp->http_major;
944 resp.http_minor = htp->http_minor;
946 if (resp.http_major > 1 || req.http_minor > 1) {
947 resp.http_major = 1;
948 resp.http_minor = 1;
961 if (resp.http_status == 204) {
962 if (resp.fs.header(http2::HD_TRANSFER_ENCODING)) {
970 if (resp.fs.parse_content_length() != 0) {
973 if (resp.fs.content_length == 0) {
974 resp.fs.erase_content_length_and_transfer_encoding();
975 } else if (resp.fs.content_length != -1) {
978 } else if (resp.http_status / 100 == 1 ||
979 (resp.http_status / 100 == 2 && req.method == HTTP_CONNECT)) {
982 resp.fs.erase_content_length_and_transfer_encoding();
983 } else if (resp.fs.parse_content_length() != 0) {
995 resp.fs.content_length = -1;
1009 resp.connection_close = !llhttp_should_keep_alive(htp);
1017 auto transfer_encoding = resp.fs.header(http2::HD_TRANSFER_ENCODING);
1019 resp.connection_close = true;
1024 resp.fs.content_length = -1;
1025 resp.connection_close = true;
1029 if (resp.fs.content_length == -1) {
1030 resp.connection_close = true;
1066 return !http2::expect_response_body(req.method, resp.http_status);
1073 auto &resp = downstream->response();
1075 if (resp.fs.buffer_size() + len > httpconf.response_header_field_buffer) {
1078 << resp.fs.buffer_size() + len;
1090 auto &resp = downstream->response();
1092 if (resp.fs.num_fields() >= httpconf.max_response_header_fields) {
1095 << "Too many header field num=" << resp.fs.num_fields() + 1;
1107 auto &resp = downstream->response();
1115 if (resp.fs.header_key_prev()) {
1116 resp.fs.append_last_header_key(data, len);
1121 resp.fs.alloc_add_header_name(StringRef{data, len});
1125 if (resp.fs.trailer_key_prev()) {
1126 resp.fs.append_last_trailer_key(data, len);
1134 resp.fs.alloc_add_trailer_name(StringRef{data, len});
1144 auto &resp = downstream->response();
1152 resp.fs.append_last_header_value(data, len);
1154 resp.fs.append_last_trailer_value(data, len);
1163 auto &resp = downstream->response();
1165 resp.recv_body_length += len;
1175 auto &resp = downstream->response();
1178 for (auto &kv : resp.fs.trailers()) {