You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
387 B
C++

#include "webcc/http_request.h"
namespace webcc {
void HttpRequest::Make() {
start_line_ = method_;
start_line_ += " ";
start_line_ += url_;
start_line_ += " HTTP/1.1";
start_line_ += CRLF;
if (port_.empty()) {
SetHeader(kHost, host_);
} else {
SetHeader(kHost, host_ + ":" + port_);
}
SetHeader(kUserAgent, "Webcc/"WEBCC_VERSION);
}
} // namespace webcc