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/windows/win_impl.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/platform/windows') diff --git a/src/platform/windows/win_impl.h b/src/platform/windows/win_impl.h index 236feb31..0c22c240 100644 --- a/src/platform/windows/win_impl.h +++ b/src/platform/windows/win_impl.h @@ -1,6 +1,6 @@ // -// Copyright 2017 Garrett D'Amore -// Copyright 2017 Capitar IT Group BV +// 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 @@ -104,6 +104,8 @@ extern void nni_win_resolv_sysfini(void); extern int nni_win_sockaddr2nn(nni_sockaddr *, const SOCKADDR_STORAGE *); extern int nni_win_nn2sockaddr(SOCKADDR_STORAGE *, const nni_sockaddr *); +#define NNG_PLATFORM_DIR_SEP "\\" + #endif // NNG_PLATFORM_WINDOWS #endif // PLATFORM_WIN_IMPL_H -- cgit v1.2.3-70-g09d2