From 50378a37357673d87f41336cb16f890e0a85494f Mon Sep 17 00:00:00 2001 From: BlobTheKat Date: Wed, 23 Oct 2024 14:19:32 +0100 Subject: [PATCH] setOptions() --- src/App.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/App.h b/src/App.h index e7e3e00fe..e3d922b56 100644 --- a/src/App.h +++ b/src/App.h @@ -96,6 +96,14 @@ struct TemplatedAppBase { TopicTree *topicTree = nullptr; + BuilderPatternReturnType &&setOptions(const SocketContextOptions& options) { + + /* Options might be more than just SSL in the future */ + us_update_socket_context(SSL, (struct us_socket_context_t *) httpContext, (const struct us_socket_context_options_t*) &options); + + return std::move(static_cast(*this)); + } + /* Server name */ BuilderPatternReturnType &&addServerName(std::string hostname_pattern, SocketContextOptions options = {}) {