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

Method AppendStartLineToString

net/http/request.cpp:103–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void HttpRequest::AppendStartLineToString(std::string* result) const {
104 CHECK_NE(m_method, METHOD_UNKNOWN);
105 StringAppend(result, GetMethodName(m_method), " ", m_uri);
106 HttpVersion version = Version();
107 if (!version.IsEmpty()) {
108 StringAppend(result, " ", "HTTP/", version.Major(), ".", version.Minor());
109 }
110}
111
112} // namespace toft
113

Callers

nothing calls this directly

Calls 4

MajorMethod · 0.80
MinorMethod · 0.80
StringAppendFunction · 0.50
IsEmptyMethod · 0.45

Tested by

no test coverage detected