static
| 38 | |
| 39 | // static |
| 40 | HttpRequest::MethodType HttpRequest::GetMethodByName(StringPiece method_name) { |
| 41 | int i = 0; |
| 42 | while (kValidMethodNames[i].method_name != NULL) { |
| 43 | // Method is case sensitive. |
| 44 | if (method_name == kValidMethodNames[i].method_name) { |
| 45 | return kValidMethodNames[i].method; |
| 46 | } |
| 47 | ++i; |
| 48 | } |
| 49 | return HttpRequest::METHOD_UNKNOWN; |
| 50 | } |
| 51 | |
| 52 | // static |
| 53 | const char* HttpRequest::GetMethodName(MethodType method) { |
nothing calls this directly
no outgoing calls
no test coverage detected