Lines Matching refs:http2

44 #include "http2.h"
328 req.path = http2::rewrite_clean_path(balloc, path);
349 if (kv.token == http2::HD_TRANSFER_ENCODING &&
350 !http2::check_transfer_encoding(kv.value)) {
370 ss << http2::to_method_string(method) << " "
388 if (method != HTTP_CONNECT && !req.fs.header(http2::HD_TRANSFER_ENCODING)) {
396 auto host = req.fs.header(http2::HD_HOST);
426 auto transfer_encoding = req.fs.header(http2::HD_TRANSFER_ENCODING);
428 http2::legacy_http1(req.http_major, req.http_minor)) {
449 req.path = http2::rewrite_clean_path(balloc, req.path);
993 http2::HD_CONNECTION);
999 auto c = resp.fs.header(http2::HD_CONNECTION);
1013 output->append(http2::stringify_status(balloc, resp.http_status));
1015 output->append(http2::get_reason_phrase(resp.http_status));
1022 http2::capitalize(output, kv.name);
1028 if (!resp.fs.header(http2::HD_SERVER)) {
1074 output->append(http2::stringify_status(balloc, status_code));
1076 output->append(http2::get_reason_phrase(status_code));
1175 buf->append(http2::stringify_status(balloc, 101));
1177 buf->append(http2::get_reason_phrase(101));
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(),
1195 http2::HDOP_STRIP_ALL);
1208 auto build_flags = (http2::HDOP_STRIP_ALL & ~http2::HDOP_STRIP_VIA) |
1209 (!http2::legacy_http1(req.http_major, req.http_minor)
1211 : http2::HDOP_STRIP_TRANSFER_ENCODING);
1213 http2::build_http1_headers_from_headers(buf, resp.fs.headers(), build_flags);
1239 auto key = req.fs.header(http2::HD_SEC_WEBSOCKET_KEY);
1244 auto accept = http2::make_websocket_accept_token(out.data(), key->value);
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);
1374 http2::build_http1_headers_from_headers(output, trailers,
1375 http2::HDOP_STRIP_ALL);
1441 http2::HD_LOCATION);
1444 http2::HD_CONNECTION);