MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / SendHttpSeeOther

Method SendHttpSeeOther

cpp/webdriver-server/server.cc:669–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667}
668
669void Server::SendHttpSeeOther(struct mg_connection* connection,
670 const struct mg_request_info* request_info,
671 const std::string& location) {
672 LOG(TRACE) << "Entering Server::SendHttpSeeOther";
673
674 std::ostringstream out;
675 out << "HTTP/1.1 303 See Other\r\n"
676 << "Location: " << location << "\r\n"
677 << "Content-Type: text/html\r\n"
678 << "Content-Length: 0\r\n\r\n";
679
680 mg_write(connection, out.str().c_str(), out.str().size());
681}
682
683std::string Server::LookupCommand(const std::string& uri,
684 const std::string& http_verb,

Callers 1

SendResponseToClientMethod · 0.95

Calls 2

LOGClass · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected