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

Method GetMethodName

net/http/request.cpp:53–58  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

51
52// static
53const char* HttpRequest::GetMethodName(MethodType method) {
54 if (method <= METHOD_UNKNOWN || method >= METHOD_UPPER_BOUND) {
55 return NULL;
56 }
57 return kValidMethodNames[method - 1].method_name; // Start from 1
58}
59
60bool HttpRequest::ParseStartLine(const StringPiece& data, HttpMessage::ErrorCode* error) {
61 ErrorCode error_placeholder;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected