diff options
| author | Per Larsson <[email protected]> | 2022-03-20 17:09:31 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2022-03-20 17:09:31 +0100 |
| commit | beb75029e8eebca4a1a5651cd8eb47dee040a1e2 (patch) | |
| tree | 6fec0dc433f410f83598db6fd2c1efa847032819 /zenhttp/asiohttpserver.h | |
| parent | Added websocket stream request/response handling. (diff) | |
| download | zen-beb75029e8eebca4a1a5651cd8eb47dee040a1e2.tar.xz zen-beb75029e8eebca4a1a5651cd8eb47dee040a1e2.zip | |
Initial attempt of merging asio http and websockets.
Diffstat (limited to 'zenhttp/asiohttpserver.h')
| -rw-r--r-- | zenhttp/asiohttpserver.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/zenhttp/asiohttpserver.h b/zenhttp/asiohttpserver.h new file mode 100644 index 000000000..157d724f0 --- /dev/null +++ b/zenhttp/asiohttpserver.h @@ -0,0 +1,20 @@ +// Copyright Epic Games, Inc. All Rights Reserved. + +#pragma once + +#include <zencore/refcount.h> + +namespace zen { + +class HttpServer; + +struct AsioHttpServerOptions +{ + uint32_t ThreadCount{16}; + uint32_t ReceiveBufferSize{256}; + uint32_t SendBufferSize{256}; +}; + +Ref<HttpServer> CreateAsioHttpServer(const AsioHttpServerOptions& Options); + +} // namespace zen |