From 7dbc9ae4fef34c6fd836b939bd559e54b8008b72 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 19 Jan 2018 17:13:40 -0800 Subject: fixes #216 HTTP server side API refactoring, directory serving support This changes the backend (internal) HTTP API to provide a much more sensible handler scheme, where the handlers are opaque objects and we can allocate a handler for different types of tasks. We've also added support serving up directories of static content, and added code to validate that the directory serving is working as intended. This is a key enabling step towards the public API. --- src/platform/posix/posix_impl.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/platform/posix') diff --git a/src/platform/posix/posix_impl.h b/src/platform/posix/posix_impl.h index 0f238e45..bf79a449 100644 --- a/src/platform/posix/posix_impl.h +++ b/src/platform/posix/posix_impl.h @@ -1,5 +1,6 @@ // -// Copyright 2017 Garrett D'Amore +// Copyright 2018 Staysail Systems, Inc. +// Copyright 2018 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -75,6 +76,8 @@ struct nni_plat_thr { void *arg; }; +#define NNG_PLATFORM_DIR_SEP "/" + #endif extern int nni_posix_pollq_sysinit(void); -- cgit v1.2.3-70-g09d2