MCPcopy Create free account
hub / github.com/ByConity/ByConity / requireAuthentication

Method requireAuthentication

src/Server/HTTP/HTTPServerResponse.cpp:110–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void HTTPServerResponse::requireAuthentication(const std::string & realm)
111{
112 poco_assert(!stream);
113
114 setStatusAndReason(HTTPResponse::HTTP_UNAUTHORIZED);
115 std::string auth("Basic realm=\"");
116 auth.append(realm);
117 auth.append("\"");
118 set("WWW-Authenticate", auth);
119}
120
121}

Callers 2

Calls 2

setFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected