nanoant / WebFrameworkBenchmark

Benchmarking some web frameworks
55 stars 25 forks source link

kore #11

Open vladimircicovic opened 6 years ago

vladimircicovic commented 6 years ago

this:

include <kore/kore.h>

include <kore/http.h>

int page(struct http_request *);

int page(struct http_request *req) { http_response(req, 200, "Hello World", 12); return (KORE_RESULT_OK); }

does not work. When I do: curl -k https://localhost:8888 Warning: Binary output can mess up your terminal. Use "--output -" to tell Warning: curl to output it to your terminal anyway, or consider "--output Warning: " to save to a file

But if I do this:

include <kore/kore.h>

include <kore/http.h>

int page(struct http_request *);

int page(struct http_request *req) { http_response(req, 200, "Hello World", 11); return (KORE_RESULT_OK); }

Change at size of Hello World ( I guess this is because SSL termination with \n or similar) It works fine.