Lines Matching defs:status_code
35 StringRef get_reason_phrase(unsigned int status_code) {
36 switch (status_code) {
144 StringRef stringify_status(BlockAllocator &balloc, unsigned int status_code) {
145 switch (status_code) {
246 return util::make_string_ref_uint(balloc, status_code);
1385 bool expect_response_body(int status_code) {
1386 return status_code == 101 ||
1387 (status_code / 100 != 1 && status_code != 304 && status_code != 204);
1390 bool expect_response_body(const std::string &method, int status_code) {
1391 return method != "HEAD" && expect_response_body(status_code);
1394 bool expect_response_body(int method_token, int status_code) {
1395 return method_token != HTTP_HEAD && expect_response_body(status_code);