Lines Matching defs:resp

468   auto &resp = downstream->response();
472 resp.http_status = 400;
481 resp.http_status = 500;
527 resp.http_status = 500;
773 const auto &resp = downstream->response();
816 return downstream->resume_read(SHRPX_NO_BUFFER, resp.unconsumed_body_length);
980 auto &resp = downstream->response();
991 resp.fs.add_header_token(StringRef::from_lit("connection"),
999 auto c = resp.fs.header(http2::HD_CONNECTION);
1006 resp.connection_close = true;
1013 output->append(http2::stringify_status(balloc, resp.http_status));
1015 output->append(http2::get_reason_phrase(resp.http_status));
1018 for (auto &kv : resp.fs.headers()) {
1028 if (!resp.fs.header(http2::HD_SERVER)) {
1060 auto &resp = downstream->response();
1065 resp.http_status = status_code;
1068 resp.connection_close = true;
1124 auto &resp = downstream->response();
1131 resp.fs.clear_headers();
1179 buf->append(http2::stringify_status(balloc, resp.http_status));
1181 buf->append(http2::get_reason_phrase(resp.http_status));
1194 http2::build_http1_headers_from_headers(buf, resp.fs.headers(),
1203 resp.fs.clear_headers();
1213 http2::build_http1_headers_from_headers(buf, resp.fs.headers(), build_flags);
1221 resp.connection_close = true;
1226 if (!req.connection_close && !resp.connection_close) {
1237 resp.http_status / 100 == 2) {
1252 auto connection = resp.fs.header(http2::HD_CONNECTION);
1259 auto upgrade = resp.fs.header(http2::HD_UPGRADE);
1268 if (!resp.fs.header(http2::HD_ALT_SVC)) {
1282 auto server = resp.fs.header(http2::HD_SERVER);
1306 auto via = resp.fs.header(http2::HD_VIA);
1320 auto end = http::create_via_header_value(viabuf.data(), resp.http_major,
1321 resp.http_minor);
1365 auto &resp = downstream->response();
1369 const auto &trailers = resp.fs.trailers();
1384 resp.connection_close = true;
1387 if (req.connection_close || resp.connection_close ||
1438 auto &resp = downstream->response();
1439 resp.http_status = 308;
1440 resp.fs.add_header_token(StringRef::from_lit("location"), loc, false,
1442 resp.fs.add_header_token(StringRef::from_lit("connection"),