MCPcopy Create free account
hub / github.com/chen3feng/toft / InternalStatusCodeToReasonPhrase

Method InternalStatusCodeToReasonPhrase

net/http/response.cpp:66–78  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

64
65// static
66const char* HttpResponse::InternalStatusCodeToReasonPhrase(
67 StatusCode status_code,
68 const char* no_match)
69{
70 for (int i = 0; ; ++i) {
71 if (kResponseStatus[i].status_code == -1) {
72 return no_match;
73 }
74 if (kResponseStatus[i].status_code == status_code) {
75 return kResponseStatus[i].reason_phrase;
76 }
77 }
78}
79
80const char* HttpResponse::StatusCodeToDescription(StatusCode status_code)
81{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected