@@ -104,20 +104,20 @@ } /** * @brief The host on which the HTTP server will listen. * - * Setting this after @ref start has been called raises an - * @ref OFAlreadyConnectedException. + * @throw OFAlreadyConnectedException The host could not be set because + * @ref start had already been called */ @property OF_NULLABLE_PROPERTY (copy, nonatomic) OFString *host; /** * @brief The port on which the HTTP server will listen. * - * Setting this after @ref start has been called raises an - * @ref OFAlreadyConnectedException. + * @throw OFAlreadyConnectedException The port could not be set because + * @ref start had already been called */ @property (nonatomic) uint16_t port; /** * @brief The delegate for the HTTP server. @@ -132,12 +132,12 @@ * If this is larger than 1 (the default), one thread will be used to accept * incoming connections and all others will be used to handle connections. * * For maximum CPU utilization, set this to `[OFSystemInfo numberOfCPUs] + 1`. * - * Setting this after @ref start has been called raises an - * @ref OFAlreadyConnectedException. + * @throw OFAlreadyConnectedException The number of threads could not be set + * because @ref start had already been called */ @property (nonatomic) size_t numberOfThreads; #endif /** @@ -155,10 +155,12 @@ */ + (instancetype)server; /** * @brief Starts the HTTP server in the current thread's run loop. + * + * @throw OFAlreadyConnectedException The server had already been started */ - (void)start; /** * @brief Stops the HTTP server, meaning it will not accept any new incoming