static
| 64 | |
| 65 | // static |
| 66 | const 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 | |
| 80 | const char* HttpResponse::StatusCodeToDescription(StatusCode status_code) |
| 81 | { |
nothing calls this directly
no outgoing calls
no test coverage detected