diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-01-19 17:13:40 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-01-20 15:03:12 -0800 |
| commit | 7dbc9ae4fef34c6fd836b939bd559e54b8008b72 (patch) | |
| tree | 54660fef8a4a597c067a18953a295f1cfdb96cf0 /src/platform/posix/posix_impl.h | |
| parent | 338706c2420ce3e51b546a6ba2574e10346a511b (diff) | |
| download | nng-7dbc9ae4fef34c6fd836b939bd559e54b8008b72.tar.gz nng-7dbc9ae4fef34c6fd836b939bd559e54b8008b72.tar.bz2 nng-7dbc9ae4fef34c6fd836b939bd559e54b8008b72.zip | |
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.
Diffstat (limited to 'src/platform/posix/posix_impl.h')
| -rw-r--r-- | src/platform/posix/posix_impl.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 <garrett@damore.org> +// Copyright 2018 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2018 Capitar IT Group BV <info@capitar.com> // // 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); |
