mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Renamed project name to 'cpp-httplib'.
This commit is contained in:
parent
8b58a3aecc
commit
6897c64c74
7 changed files with 22 additions and 20 deletions
|
@ -9,7 +9,7 @@ CC = g++
|
|||
CFLAGS = -std=c++11 -g
|
||||
endif
|
||||
|
||||
test : test.cc ../httpsvrkit.h
|
||||
test : test.cc ../httplib.h
|
||||
$(CC) -o test $(CFLAGS) -I.. -I. test.cc gtest/gtest-all.cc gtest/gtest_main.cc
|
||||
|
||||
.PHONY : run
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
|
||||
#include <gtest/gtest.h>
|
||||
#include <httpsvrkit.h>
|
||||
#include <httplib.h>
|
||||
#include <future>
|
||||
|
||||
using namespace std;
|
||||
using namespace httpsvrkit;
|
||||
using namespace httplib;
|
||||
|
||||
TEST(SplitTest, ParseQueryString)
|
||||
{
|
||||
|
@ -55,7 +55,7 @@ TEST(ServerTest, GetMethod)
|
|||
{
|
||||
Server svr("localhost", 1914);
|
||||
|
||||
svr.get("hi", [&](httpsvrkit::Context& cxt) {
|
||||
svr.get("hi", [&](httplib::Context& cxt) {
|
||||
cxt.response.set_content("Hello World!");
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue