Added Request::remote_endpoint tests to io_test
This commit is contained in:
parent
5a7c021dab
commit
ccce9d1fdf
1 changed files with 3 additions and 0 deletions
|
|
@ -64,6 +64,9 @@ int main() {
|
||||||
|
|
||||||
*response << "HTTP/1.1 200 OK\r\nContent-Length: " << content.length() << "\r\n\r\n"
|
*response << "HTTP/1.1 200 OK\r\nContent-Length: " << content.length() << "\r\n\r\n"
|
||||||
<< content;
|
<< content;
|
||||||
|
|
||||||
|
assert(!request->remote_endpoint_address().empty());
|
||||||
|
assert(request->remote_endpoint_port() != 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
server.resource["^/string2$"]["POST"] = [](shared_ptr<HttpServer::Response> response, shared_ptr<HttpServer::Request> request) {
|
server.resource["^/string2$"]["POST"] = [](shared_ptr<HttpServer::Response> response, shared_ptr<HttpServer::Request> request) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue